Subversion Repositories IRCServ

Rev

Rev 6 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 nishi 1
# $Id: Makefile 10 2024-08-26 13:37:23Z nishi $
2
 
3
PWD = `pwd`
4
PLATFORM = generic
10 nishi 5
PREFIX = /usr/local
1 nishi 6
 
10 nishi 7
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./check objs`" PREFIX="$(PREFIX)"
1 nishi 8
 
9
include Platform/$(PLATFORM).mk
10
 
10 nishi 11
.PHONY: all format clean ./Service check-config install
1 nishi 12
 
13
all: ./Service
14
 
2 nishi 15
./Service:: check-config
1 nishi 16
	$(MAKE) -C $@ $(FLAGS)
17
 
2 nishi 18
check-config: check
19
	./check
20
 
21
check: config.h check.c
22
	cc -o check check.c
23
 
24
format:
25
	clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
26
 
10 nishi 27
install: all
28
	mkdir -p $(PREFIX)/lib/ircserv
29
	mkdir -p $(PREFIX)/bin
30
	$(MAKE) -C ./Service $(FLAGS) install
31
 
1 nishi 32
clean:
33
	$(MAKE) -C ./Service $(FLAGS) clean
2 nishi 34
	rm -f check