Subversion Repositories IRCServ

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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