Subversion Repositories Tewi

Rev

Rev 32 | Rev 43 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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