aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-10-18 07:27:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-10-18 07:27:49 -0700
commitf6554ffa53bb3247d184afc3c89b077c19c5cc5c (patch)
tree051d759b01be8017b9aa16f1193c4639a20d40a4 /Makefile
parent0012d8688217585c366aaa0f7389f4c8a1ee0dea (diff)
downloadjp-hash-f6554ffa53bb3247d184afc3c89b077c19c5cc5c.tar.gz
jp-hash-f6554ffa53bb3247d184afc3c89b077c19c5cc5c.tar.bz2
jp-hash-f6554ffa53bb3247d184afc3c89b077c19c5cc5c.zip
New project: JP-Hash
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