blob: 00476349c2b9cb4c1dc3d9b690c1587ef029af3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $Id$
CFLAGS+=-Wall -Wextra -pedantic -Os
LDFLAGS+=-s -lutil
PREFIX?=/usr/local
all: jaildaemon
jaildaemon: jaildaemon.c
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
install: jaildaemon
mkdir -p ${PREFIX}/man/man1/
install -o 0 -g 0 -m 0755 jaildaemon $(PREFIX)/bin
install -o 0 -g 0 -m 0755 rc.d-jaildaemon $(PREFIX)/etc/rc.d/jaildaemon
install -o 0 -g 0 -m 0644 man1/jaildaemon.1 ${PREFIX}/man/man1/
.PHONY: clean test
clean:
rm -f jaildaemon
test: jaildaemon
sudo sh ./jaildaemon.sh
|