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