aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bcdd123
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+# part of Hydrilla
+#
+# Copyright (C) 2021 Wojtek Kosior
+# Redistribution terms are gathered in the `copyright' file.
+
+CC=gcc
+CFLAGS=-Wall -Werror -pedantic -std=c99 -D_USE_INLINE -O0 -g
+#CFLAGS=-Wall -Werror -std=c89 -O0 -g
+
+EXECNAME=hydrilla
+
+$(EXECNAME): string_buf.o hashtable.o serve.o scriptbase_build.o \
+ scriptbase_query.o scriptbase_json_query.o main.o
+ gcc $(filter %.o,$^) -lmicrohttpd -lcjson -o $@
+
+clean:
+ rm -f $(EXECNAME) *.o
+
+.PHONY: clean
+
+*.o $(EXECNAME): Makefile