diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,8 +1,14 @@ | |||
1 | CFLAGS+=-Wall -Wextra -pedantic -Os | 1 | CFLAGS+=-Wall -Wextra -pedantic -Os |
2 | LDFLAGS+=-s | ||
3 | PREFIX?=/usr/local | ||
2 | 4 | ||
3 | jaildaemon: jaildaemon.c | 5 | jaildaemon: jaildaemon.c |
4 | $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) | 6 | $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) |
5 | 7 | ||
8 | install: 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 |
7 | clean: | 13 | clean: |
8 | rm -f jaildaemon | 14 | rm -f jaildaemon |