siphash/makefile

20 lines
368 B
Makefile
Raw Normal View History

2016-01-20 14:00:45 +00:00
CC=gcc
2016-12-16 08:04:05 +00:00
CFLAGS=-Wall
SRC=siphash.c halfsiphash.c test.c
BIN=test debug
2016-01-20 14:00:45 +00:00
all: $(BIN)
2016-12-16 08:04:05 +00:00
test: $(SRC)
2016-01-20 14:00:45 +00:00
$(CC) $(CFLAGS) $^ -o $@
2016-12-16 08:04:05 +00:00
debug: $(SRC)
2016-01-20 14:00:45 +00:00
$(CC) $(CFLAGS) $^ -o $@ -DDEBUG
clean:
2016-12-16 08:04:05 +00:00
rm -f *.o $(BIN)
2016-01-20 14:00:45 +00:00
dist: clean
cd ..; \
tar zcf SipHash-`date +%Y%m%d%H%M`.tgz SipHash/*