Subversion Repositories Tewi

Rev

Rev 32 | Rev 43 | 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 37 2024-09-16 13:57:39Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
4 nishi 5
PREFIX = /usr/local
2 nishi 6
 
25 nishi 7
include Platform/$(PLATFORM).mk
8
 
2 nishi 9
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
10
 
37 nishi 11
.PHONY: all format clean ./Server ./Common ./Module ./Manpage
2 nishi 12
 
37 nishi 13
all: ./Server ./Module ./Manpage
2 nishi 14
 
15
./Server:: ./Common
16
	$(MAKE) -C $@ $(FLAGS)
17
 
17 nishi 18
./Module:: ./Common
19
	$(MAKE) -C $@ $(FLAGS)
20
 
2 nishi 21
./Common::
22
	$(MAKE) -C $@ $(FLAGS)
23
 
37 nishi 24
./Manpage::
25
	$(MAKE) -C $@ $(FLAGS)
26
 
2 nishi 27
format:
32 nishi 28
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"`
2 nishi 29
 
30
clean:
31
	$(MAKE) -C ./Server $(FLAGS) clean
17 nishi 32
	$(MAKE) -C ./Module $(FLAGS) clean
2 nishi 33
	$(MAKE) -C ./Common $(FLAGS) clean
37 nishi 34
	$(MAKE) -C ./Manpage $(FLAGS) clean