diff options
author | Russell King <rmk@armlinux.org.uk> | 2021-04-16 14:01:05 +0100 |
---|---|---|
committer | Russell King <rmk@armlinux.org.uk> | 2021-04-16 14:01:05 +0100 |
commit | 9d7b0311d5948fca09b19dbe27e5f506e2e303e0 (patch) | |
tree | 1accaf615f2f744232fceed6a9a8ceca6cde7c53 /Makefile |
event-httpd: add event httpd support
Add event httpd, which is a small and basic http server designed to
provide server sent events to clients. The server accepts updates
through a simple "UPDATE" method which are then broadcast to clients
listening using the "GET" method.
Signed-off-by: Russell King <rmk@armlinux.org.uk>
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)|" $< > $@ |