-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (54 loc) · 3.15 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
###################################################
# Makefile for Channel Coding 1516 final project - code only
###################################################
test: invert_H encoder_test rng node_test
invert_H: ./test/invert_H.cpp
@clang++ -std=c++11 -c -I/Users/Michele/Dev/lib/ntl/include -I./classes $?
@clang++ -std=c++11 -o invert_H invert_H.o -L/Users/Michele/Dev/lib/ntl/lib -lntl -lm
rng: ./test/rng_test.cpp
@clang++ -std=c++11 -o rng_test $?
encoder: ./classes/ldpc_encoder.cpp
@clang++ -std=c++11 -c -I./classes $?
decoder: ./classes/ldpc_decoder.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -c -I./classes -g $?
variable_node: ./classes/variable_node.cpp
@clang++ -std=c++11 -c -I./classes $?
encoder_test: ./test/encoder_test.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/ldpc_encoder.cpp
@clang++ -std=c++11 -c -I./classes -g $?
@clang++ -std=c++11 -o encoder_test encoder_test.o ldpc_encoder.o
node_test: ./test/node_test.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g $?
@clang++ -std=c++11 -O3 -o node_test variable_node.o check_node.o node_test.o
decoder_test: ./test/decoder_test.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -c -I./classes -g ./classes/ldpc_decoder.cpp
@clang++ -std=c++11 -c -I./classes -g $?
@clang++ -std=c++11 -o decoder_test decoder_test.o ldpc_decoder.o variable_node.o check_node.o
dwdm: ./test/dwdm_encode_decode.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/ldpc_decoder.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/ldpc_encoder.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g $?
@clang++ -std=c++11 -O3 -o dwdm_encode_decode dwdm_encode_decode.o ldpc_decoder.o variable_node.o check_node.o ldpc_encoder.o
sim: ./test/simulation_enc.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/ldpc_decoder.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/ldpc_encoder.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g $?
@clang++ -std=c++11 -O3 -o simulation_enc simulation_enc.o ldpc_decoder.o variable_node.o check_node.o ldpc_encoder.o
sim_multi: ./test/simulation_multi.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/variable_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/check_node.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g ./classes/ldpc_decoder.cpp
@clang++ -std=c++11 -O3 -c -I./classes -g $?
@clang++ -std=c++11 -O3 -o simulation_multi simulation_multi.o ldpc_decoder.o variable_node.o check_node.o
clean:
rm invert_H encoder_test rng_test dwdm_encode_decode simulation decoder_test node_test simulation_multi simulation_enc *.o *.aux *.log