Subversion Repositories Tewi

Rev

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

Rev 44 Rev 53
Line 1... Line 1...
1
# $Id: Makefile 44 2024-09-18 09:37:09Z nishi $
1
# $Id: Makefile 53 2024-09-18 11:29:31Z 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 ./Manpage
11
.PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version
12
 
12
 
13
all: ./Server ./Module ./Manpage
13
all: ./Server ./Module ./Manpage
14
 
14
 
15
./Server/option: ./Server/option.c
15
./Server/option: ./Server/option.c
16
	cc -o $@ ./Server/option.c
16
	cc -o $@ ./Server/option.c
Line 28... Line 28...
28
	$(MAKE) -C $@ $(FLAGS)
28
	$(MAKE) -C $@ $(FLAGS)
29
 
29
 
30
format:
30
format:
31
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
31
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
32
 
32
 
-
 
33
get-version:
-
 
34
	@grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'
-
 
35
 
33
clean:
36
clean:
34
	$(MAKE) -C ./Server $(FLAGS) clean
37
	$(MAKE) -C ./Server $(FLAGS) clean
35
	$(MAKE) -C ./Module $(FLAGS) clean
38
	$(MAKE) -C ./Module $(FLAGS) clean
36
	$(MAKE) -C ./Common $(FLAGS) clean
39
	$(MAKE) -C ./Common $(FLAGS) clean
37
	$(MAKE) -C ./Manpage $(FLAGS) clean
40
	$(MAKE) -C ./Manpage $(FLAGS) clean