-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (29 loc) · 1.04 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
####################################################################
# PLinOpt: a collection of C++ routines handling linear programs
# Authors: J-G. Dumas, C. Pernet, A. Sedoglavic
####################################################################
OPTFLAGS = -Ofast
# OPTFLAGS += -D INPLACE_CHECKER # adds Maple checks
# OPTFLAGS += -D VERBATIM_PARSING # Verbose output
# OPTFLAGS += -D DEFAULT_RANDOM_LOOPS=30u # Default # of loops
# OPTFLAGS += -D COEFFICIENT_SEARCH=20u # Default # sparsifier coeffs
#######
CXXFLAGS += -D RANDOM_TIES -D INPLACE_CHECKER
CXXFLAGS += ${OPTFLAGS} -I`pwd`/include/ `pkg-config linbox --cflags`
LOADLIBES+= `pkg-config linbox --libs |sed 's/-liml//;s/-lfplll//;s/-lflint//'`
#######
EXE = sms2pretty matrix-transpose MMchecker
EXE += transpozer compacter PMchecker
EXE += optimizer
EXE += sparsifier factorizer
EXE += inplacer trilplacer
SRC=${EXE:%=src/%.cpp}
BIN=${EXE:%=bin/%}
#######
all: ${BIN}
bin/%: src/%.cpp
$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@
clean:
- \rm ${BIN}
check: ${BIN}
./bin/FDT.sh