-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 698 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 698 Bytes
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
30
31
32
33
34
35
36
37
PROG = sha1test
TESTFILE = /tmp/bigfile
CC = gcc
CFLAGS = -Ofast -march=native
LIBS = -lcrypto
HEADER = types.h
TEMPLATE = template_3funcs.c
OBJS = \
t_coreutils.o \
t_haskell.o \
t_nayuki.o \
t_openssl.o \
t_sph.o \
ztest.o \
$(EMPTY)
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(CFLAGS) -o $@ $? $(LIBS)
test: $(PROG) $(TESTFILE)
cat $(TESTFILE) > /dev/null
./$(PROG) $(TESTFILE)
clean:
-$(RM) $(OBJS)
t_coreutils.o: t_coreutils.c coreutils.c $(HEADER) $(TEMPLATE)
t_haskell.o: t_haskell.c haskell.c $(HEADER) $(TEMPLATE)
t_nayuki.o: t_nayuki.c nayuki.c $(HEADER)
t_openssl.o: t_openssl.c $(HEADER) $(TEMPLATE)
t_sph.o: t_sph.c sph.c $(HEADER) $(TEMPLATE)
ztest.o: ztest.c $(HEADER)