aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-07-22 10:12:58 +0200
committerWojtek Kosior <koszko@koszko.org>2021-07-22 10:12:58 +0200
commit91d4ce9f14668a5a04b51158b1921e83d51ba9a0 (patch)
treee0c10d59c4da49681d8d558169d3fc382e188144 /Makefile
parente34205c764d10d50d982d1c63e23520d393946db (diff)
downloadhydrilla-91d4ce9f14668a5a04b51158b1921e83d51ba9a0.tar.gz
hydrilla-91d4ce9f14668a5a04b51158b1921e83d51ba9a0.zip
initial codebase
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