Line | |
---|
1 | # $Id: Makefile 32 2024-09-16 12:42:19Z nishi $
|
---|
2 |
|
---|
3 | PWD = `pwd`
|
---|
4 | PLATFORM = generic
|
---|
5 | PREFIX = /usr/local
|
---|
6 |
|
---|
7 | include Platform/$(PLATFORM).mk
|
---|
8 |
|
---|
9 | FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
|
---|
10 |
|
---|
11 | .PHONY: all format clean ./Server ./Common ./Module
|
---|
12 |
|
---|
13 | all: ./Server ./Module
|
---|
14 |
|
---|
15 | ./Server:: ./Common
|
---|
16 | $(MAKE) -C $@ $(FLAGS)
|
---|
17 |
|
---|
18 | ./Module:: ./Common
|
---|
19 | $(MAKE) -C $@ $(FLAGS)
|
---|
20 |
|
---|
21 | ./Common::
|
---|
22 | $(MAKE) -C $@ $(FLAGS)
|
---|
23 |
|
---|
24 | format:
|
---|
25 | clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"`
|
---|
26 |
|
---|
27 | clean:
|
---|
28 | $(MAKE) -C ./Server $(FLAGS) clean
|
---|
29 | $(MAKE) -C ./Module $(FLAGS) clean
|
---|
30 | $(MAKE) -C ./Common $(FLAGS) clean
|
---|
Note:
See
TracBrowser
for help on using the repository browser.