Subversion Repositories Tewi

Rev

Rev 37 | Rev 44 | 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 43 2024-09-18 09:19:03Z 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
 
43 nishi 15
./Server/option: ./Server/option.c
16
	cc -o $@ ./Server/option.c
2 nishi 17
 
43 nishi 18
./Server:: ./Common ./Server/option
19
	$(MAKE) -C $@ $(FLAGS) EXTOBJS=`./Server/option objs ../` EXTLIBS=`./Server/option libs ../`
20
 
17 nishi 21
./Module:: ./Common
22
	$(MAKE) -C $@ $(FLAGS)
23
 
2 nishi 24
./Common::
25
	$(MAKE) -C $@ $(FLAGS)
26
 
37 nishi 27
./Manpage::
28
	$(MAKE) -C $@ $(FLAGS)
29
 
2 nishi 30
format:
43 nishi 31
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
2 nishi 32
 
33
clean:
34
	$(MAKE) -C ./Server $(FLAGS) clean
17 nishi 35
	$(MAKE) -C ./Module $(FLAGS) clean
2 nishi 36
	$(MAKE) -C ./Common $(FLAGS) clean
37 nishi 37
	$(MAKE) -C ./Manpage $(FLAGS) clean
43 nishi 38
	rm -f ./Server/option