2024-09-13 08:38:39 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
PWD = `pwd`
|
|
|
|
PLATFORM = generic
|
2024-09-13 09:39:33 +00:00
|
|
|
PREFIX = /usr/local
|
2024-09-13 08:38:39 +00:00
|
|
|
|
|
|
|
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
.PHONY: all format clean ./Server ./Common
|
|
|
|
|
|
|
|
all: ./Server
|
|
|
|
|
|
|
|
./Server:: ./Common
|
|
|
|
$(MAKE) -C $@ $(FLAGS)
|
|
|
|
|
|
|
|
./Common::
|
|
|
|
$(MAKE) -C $@ $(FLAGS)
|
|
|
|
|
|
|
|
format:
|
|
|
|
clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(MAKE) -C ./Server $(FLAGS) clean
|
|
|
|
$(MAKE) -C ./Common $(FLAGS) clean
|