siphash/makefile

30 lines
651 B
Makefile
Raw Normal View History

2014-03-23 10:53:31 +00:00
CC=gcc
CFLAGS=-Wall
2014-11-08 17:43:13 +00:00
SRC=siphash24.c main.c
BIN=siphash24_test siphash24_debug
BIN_DOUBLE=siphash24_test_double siphash24_debug_double
2014-03-23 10:53:31 +00:00
2014-11-08 17:43:13 +00:00
all: $(BIN)
2014-03-23 10:53:31 +00:00
2014-11-08 17:43:13 +00:00
siphash24_test: $(SRC)
$(CC) $(CFLAGS) $^ -o $@
2014-03-23 10:53:31 +00:00
2014-11-08 17:43:13 +00:00
siphash24_debug: $(SRC)
$(CC) $(CFLAGS) $^ -o $@ -DDEBUG
double: $(BIN_DOUBLE)
siphash24_test_double: $(SRC)
$(CC) $(CFLAGS) $^ -o $@ -DDOUBLE
siphash24_debug_double: $(SRC)
$(CC) $(CFLAGS) $^ -o $@ -DDOUBLE -DDEBUG
2014-03-23 10:53:31 +00:00
clean:
2014-11-08 17:43:13 +00:00
rm -f *.o $(BIN) $(BIN_DOUBLE)
2014-03-23 10:53:31 +00:00
2014-11-08 17:43:13 +00:00
dist: clean
cd ..; \
tar zcf SipHash-`date +%Y%m%d%H%M`.tgz SipHash/*
2014-03-23 12:41:25 +00:00