Subversion Repositories Tewi

Rev

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

Rev 6 Rev 17
Line 1... Line 1...
1
# $Id: Makefile 6 2024-09-13 10:28:20Z nishi $
1
# $Id: Makefile 17 2024-09-13 17:41:07Z 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
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
7
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
8
 
8
 
9
.PHONY: all format clean ./Server ./Common
9
.PHONY: all format clean ./Server ./Common ./Module
10
 
10
 
11
all: ./Server
11
all: ./Server ./Module
12
 
12
 
13
./Server:: ./Common
13
./Server:: ./Common
14
	$(MAKE) -C $@ $(FLAGS)
14
	$(MAKE) -C $@ $(FLAGS)
15
 
15
 
-
 
16
./Module:: ./Common
-
 
17
	$(MAKE) -C $@ $(FLAGS)
-
 
18
 
16
./Common::
19
./Common::
17
	$(MAKE) -C $@ $(FLAGS)
20
	$(MAKE) -C $@ $(FLAGS)
18
 
21
 
19
format:
22
format:
20
	clang-format --verbose -i `find ./Server ./Common -name "*.c" -or -name "*.h"`
23
	clang-format --verbose -i `find ./Server ./Common ./Module -name "*.c" -or -name "*.h"`
21
 
24
 
22
clean:
25
clean:
23
	$(MAKE) -C ./Server $(FLAGS) clean
26
	$(MAKE) -C ./Server $(FLAGS) clean
-
 
27
	$(MAKE) -C ./Module $(FLAGS) clean
24
	$(MAKE) -C ./Common $(FLAGS) clean
28
	$(MAKE) -C ./Common $(FLAGS) clean