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