Subversion Repositories IRCServ

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 6 2024-08-25 19:00:39Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
6 nishi 6
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./check objs`"
1 nishi 7
 
8
include Platform/$(PLATFORM).mk
9
 
2 nishi 10
.PHONY: all format clean ./Service check-config
1 nishi 11
 
12
all: ./Service
13
 
2 nishi 14
./Service:: check-config
1 nishi 15
	$(MAKE) -C $@ $(FLAGS)
16
 
2 nishi 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
 
1 nishi 26
clean:
27
	$(MAKE) -C ./Service $(FLAGS) clean
2 nishi 28
	rm -f check