aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fd99a3e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+CFLAGS ?= -Wall -W -Wextra -g # -O2
+.PHONY: all
+all: jp-hash jp-hash.tlo
+jp-hash: LDLIBS += -lcrypto
+jp-hash: jp-hash.o
+jp-hash.o: CFLAGS += -DJP_HASH_IMPL=1 -DJP_HASH_MAIN=1
+jp-hash.o: jp-hash.c
+jp-hash.tlo: jp-hash.tl; txr --compile=$^:$@
+.PHONY: clean
+clean:; rm -f jp-hash jp-hash.o jp-hash.tlo