Subversion Repositories IRCServ

Rev

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

Rev 1 Rev 2
Line 1... Line 1...
1
# $Id: Makefile 1 2024-08-25 09:23:35Z nishi $
1
# $Id: Makefile 2 2024-08-25 10:11:51Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
 
5
 
6
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM)
6
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM)
7
 
7
 
8
include Platform/$(PLATFORM).mk
8
include Platform/$(PLATFORM).mk
9
 
9
 
10
.PHONY: all clean ./Service
10
.PHONY: all format clean ./Service check-config
11
 
11
 
12
all: ./Service
12
all: ./Service
13
 
13
 
14
./Service::
14
./Service:: check-config
15
	$(MAKE) -C $@ $(FLAGS)
15
	$(MAKE) -C $@ $(FLAGS)
16
 
16
 
-
 
17
check-config: check
-
 
18
	./check
-
 
19
 
-
 
20
check: config.h check.c
-
 
21
	cc -o check check.c
-
 
22
 
-
 
23
format:
-
 
24
	clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
-
 
25
 
17
clean:
26
clean:
18
	$(MAKE) -C ./Service $(FLAGS) clean
27
	$(MAKE) -C ./Service $(FLAGS) clean
-
 
28
	rm -f check