crhash: sha1: add test vectors
[crhash.git] / Makefile
blob5c16d17e15fcf7a9a4c78f6e7887086391ed9529
1 PHONY :=
3 OBJS :=
4 OBJS += hash-md5.o
5 OBJS += hash-sha1.o
6 OBJS += hash-whirlpool.o
7 OBJS += main.o
9 CFLAGS ?= -march=native -O2
10 CFLAGS += -pipe
11 CFLAGS += -std=c99 -pedantic-errors
12 CFLAGS += -fno-strict-aliasing
13 CFLAGS += -Wall
15 CFLAGS += -D_BSD_SOURCE
17 LDFLAGS ?= -Wl,-O1
19 CFLAGS += -ggdb
20 LDFLAGS += -ggdb
22 CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
24 PHONY += all
25 all: crhash
27 crhash: $(OBJS)
28 $(CC) $(LDFLAGS) -o $@ $(OBJS)
30 -include $(wildcard .*.d)
32 PHONY += test
33 test: all
34 @./test.sh
36 PHONY += clean
37 clean:
38 $(RM) crhash $(OBJS)
39 @find . -type f -name '.*.d' -exec $(RM) {} \;
41 .PHONY: $(PHONY)