PROJECT MOVED -> https://lab.nexedi.com/nexedi/usersyslog
[usersyslog.git] / Makefile
1 CFLAGS ?= -O2 -s
2 CFLAGS += -Wall -fPIE -pie
3 LDLIBS = -ldl
4 PREFIX = /usr/local
5
6 .PHONY: all install uninstall clean
7
8 all: usersyslog
9
10 usersyslog: usersyslog.c
11 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
12
13 install: all
14 install -Dp usersyslog $(DESTDIR)$(PREFIX)/bin/usersyslog
15
16 uninstall:
17 -cd $(DESTDIR)$(PREFIX) && rm -f bin/usersyslog
18
19 clean:
20 -rm -f usersyslog