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