forked from GeorgeArgyros/mt_derand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (30 loc) · 1023 Bytes
/
Makefile
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
38
39
40
41
42
43
CC=g++
CFLAGS= -O3 -fno-stack-protector -funroll-loops -finline-functions
LDFLAGS= -O4
TARGETS= equation.o unroll.o gauss.o derand.o server.o mtrand.o
BIN=derand
TEST_BIN=test_components
TEST_TARGETS=equation.o unroll.o gauss.o mtrand.o test_components.o
all: $(TARGETS)
$(CC) $(LDFLAGS) -o $(BIN) $(TARGETS)
derand.o: derand.cpp derand.hpp
$(CC) $(CFLAGS) -c derand.cpp
mtrand.o: mtrand.cpp mtrand.hpp
$(CC) $(CFLAGS) -c mtrand.cpp
equation.o: equation.cpp equation.hpp
$(CC) $(CFLAGS) -c equation.cpp
gauss.o: gauss.cpp gauss.hpp
$(CC) $(CFLAGS) -c gauss.cpp
unroll.o: unroll.cpp unroll.hpp
$(CC) $(CFLAGS) -c unroll.cpp
server.o: server.cpp server.hpp
$(CC) $(CFLAGS) -c server.cpp
test_components.o: test_components.cpp test_components.hpp
$(CC) $(CFLAGS) -c test_components.cpp
test_components: $(TEST_TARGETS)
$(CC) $(LDFLAGS) -o $(TEST_BIN) $(TEST_TARGETS)
test: test_components
./test_components
python test_derand.py
clean:
rm -rf $(TARGETS) $(BITTARGETS) $(BITTEST) $(BIN) $(TEST_BIN)