Subversion Repositories Tewi

Rev

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

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