-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
73 lines (52 loc) · 2.08 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
68
69
70
71
72
73
CXX = g++
#CXXFLAGS += -fopenmp
CXXFLAGS += -g -std=c++0x
CXXFLAGS += -pg -Wall -pedantic $(CFLAGS)
#CXXFLAGS += -O2 -funroll-loops -mtune=native -march=native $(CFLAGS)
CXXFLAGS += -D__STDC_LIMIT_MACROS
#CXXFLAGS += -DUSE_BOOST_POOL
#CXXFLAGS += -DUSE_PRERAND
CXXFLAGS += -DUSE_RANDOMLIB
#CXXFLAGS += -DUSE_BOOST_RAND
CXXFLAGS += -I$(HOME)/include/m4ri -I$(HOME)/include/m4rie
#LDFLAGS+= -lRandom -lm4ri -lm4rie -lgivaro -lgmp -lgomp
LDFLAGS+= -lRandom -lm4ri -lm4rie -lgivaro -lgmp
LDFLAGS+= -litpp
#LDFLAGS+= -static
#LDFLAGS+= -lgomp -ltcmalloc
OBJ_EBCTEST = utils.o ebc.o graph.o main.o
OBJ_SIMCODES = utils.o ebc.o graph.o simcodes.o getopt_pp.o PreRandom.o
OBJ_GPCRATE = utils.o graph.o ebc.o gpcrate.o
OBJ_RSGEN = rsgen.o
OBJ_ALLRATES = utils.o graph.o allrates.o ebc.o
OBJ_SIMALL = simall.o ebc.o graph.o
OBJ_ENUM = enum.o
OBJ_GLDPCSIM = sse_mathfun.o utils.o graph.o getopt_pp.o channel.o gldpcsim.o gldpc.o
OBJ_EXTENDEDPEELING = utils.o graph.o getopt_pp.o dists.o extendedpeeling.o
OBJ_SIMCOVERAGE = utils.o getopt_pp.o simcoverage.o
all: ebctest simcodes gpcrate rsgen allrates enum gldpcsim extendedpeeling simcoverage
#$(OBJ_EBCTEST): Makefile ebc.h
#$(OBJ_SIMCODES): Makefile ebc.h
ebctest: $(OBJ_EBCTEST)
$(CXX) -o $@ $(OBJ_EBCTEST) $(LDFLAGS)
simcodes: $(OBJ_SIMCODES)
$(CXX) -o $@ $(OBJ_SIMCODES) $(LDFLAGS)
gldpcsim: $(OBJ_GLDPCSIM)
$(CXX) -o $@ $(OBJ_GLDPCSIM) $(LDFLAGS)
gpcrate: $(OBJ_GPCRATE)
$(CXX) -o $@ $(OBJ_GPCRATE) $(LDFLAGS)
rsgen: $(OBJ_RSGEN)
$(CXX) -o $@ $(OBJ_RSGEN) $(LDFLAGS)
allrates: $(OBJ_ALLRATES)
$(CXX) -o $@ $(OBJ_ALLRATES) $(LDFLAGS)
enum: $(OBJ_ENUM)
$(CXX) -o $@ $(OBJ_ENUM) $(LDFLAGS)
simall: $(OBJ_SIMALL)
$(CXX) -o $@ $(OBJ_SIMALL) $(LDFLAGS)
extendedpeeling: $(OBJ_EXTENDEDPEELING)
$(CXX) -o $@ $(OBJ_EXTENDEDPEELING) $(LDFLAGS)
simcoverage: $(OBJ_SIMCOVERAGE)
$(CXX) -o $@ $(OBJ_SIMCOVERAGE) $(LDFLAGS)
clean:
-rm -f ebctest $(OBJ_EBCTEST) simcodes $(OBJ_SIMCODES) rsgen $(OBJ_RSGEN) gpcrate $(OBJ_GPCRATE) allrates $(OBJ_ALLRATES) enum $(OBJ_ENUM) simall $(OBJ_SIMALL) triform $(OBJ_EXTENDEDPEELING)
# DO NOT DELETE