summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorerdgeist <>2013-03-02 13:19:50 +0000
committererdgeist <>2013-03-02 13:19:50 +0000
commit6538f994c8f4cc9a327e49257b3db6c101b4a4c1 (patch)
treeb2fb3eb03ee3640ded2dcfc540ca3b83caacea55 /Makefile
parentc2f20b16030f9099bc04da26154709c25ba5f6f0 (diff)
Add an rc-script plus its install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4db0245..ef6a9b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,14 @@
1CFLAGS+=-Wall -Wextra -pedantic -Os 1CFLAGS+=-Wall -Wextra -pedantic -Os
2LDFLAGS+=-s
3PREFIX?=/usr/local
2 4
3jaildaemon: jaildaemon.c 5jaildaemon: jaildaemon.c
4 $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) 6 $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
5 7
8install: jaildaemon
9 install -o 0 -g 0 -m 0755 jaildaemon $(PREFIX)/bin
10 install -o 0 -g 0 -m 0755 rc.d-jaildaemon $(PREFIX)/etc/rc.d/jaildaemon
11
6.PHONY: clean test 12.PHONY: clean test
7clean: 13clean:
8 rm -f jaildaemon 14 rm -f jaildaemon