aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fd99a3e6d3e1748eb14e5ccc461621e0f160bbdc (plain)
1
2
3
4
5
6
7
8
9
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