diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b062b10 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CFLAGS :=-O2 -Wall -g +CPPFLAGS :=$(shell pkg-config --cflags gio-2.0) +LDLIBS :=$(shell pkg-config --libs gio-2.0) +INSTALL :=install + +prefix :=/usr/local +sbindir :=$(prefix)/sbin +systemdsystemunitdir :=/etc/systemd/system + +all: event-httpd event-httpd.service + +install: + $(INSTALL) -s -m 755 event-httpd $(sbindir) + $(INSTALL) -m 644 event-httpd.service $(systemdsystemunitdir) + +event-httpd: event-httpd.o resource.o + +event-httpd.service: event-httpd.service.in + sed "s|@sbindir@|$(sbindir)|" $< > $@ |