path: root/Makefile
diff options
authorRussell King <>2021-04-16 14:01:05 +0100
committerRussell King <>2021-04-16 14:01:05 +0100
commit9d7b0311d5948fca09b19dbe27e5f506e2e303e0 (patch)
tree1accaf615f2f744232fceed6a9a8ceca6cde7c53 /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 <>
Diffstat (limited to 'Makefile')
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) -s -m 755 event-httpd $(sbindir)
+ $(INSTALL) -m 644 event-httpd.service $(systemdsystemunitdir)
+event-httpd: event-httpd.o resource.o
+ sed "s|@sbindir@|$(sbindir)|" $< > $@