aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: ef0b699d53ec7956667e10a5fd91ff4f9d27ffe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CC=gcc
CFLAGS=-Wall 
SRC=siphash24.c main.c
BIN=siphash24_test siphash24_debug
BIN_DOUBLE=siphash24_test_double siphash24_debug_double

all:		        $(BIN)

siphash24_test:	        $(SRC)
		        $(CC) $(CFLAGS) $^ -o $@

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

clean:	      
		        rm -f *.o $(BIN) $(BIN_DOUBLE)

dist:		        clean
		        cd ..; \
		        tar zcf SipHash-`date +%Y%m%d%H%M`.tgz SipHash/*