Subversion Repositories IRCServ

Rev

Rev 2 | Rev 6 | 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 5 2024-08-25 11:58:10Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
5
 
5 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