Subversion Repositories Tewi

Rev

Rev 6 | Rev 25 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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