-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (41 loc) · 1.54 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
# VERSION = core or simp
# SOLVERNAME = name of the SAT solver
# SOLVERDIR = subdirectory of the SAT solver
# NSPACE = namespace of the SAT solver
#
# e.g. minisat compilation with core version:
#
# VERSION = core
# SOLVERNAME = "Minisat"
# SOLVERDIR = minisat
# NSPACE = Minisat
#
VERSION = core
SOLVERNAME = "Glucose4.1"
SUPERSOLVERNAME=TT-Open-WBO-Inc#TT-Open-WBO-Inc Loandra Open-WBO-Inc LinSBPS SATLike
SUPERSOLVERNAMEID=1#1 2 3 4 5
NSPACE = Glucose
ifeq ($(SUPERSOLVERNAMEID), 5)
Dist: solver/SATLike/basis_pms.h solver/SATLike/pms.h solver/SATLike/pms.cpp rapidjson/*.h rapidjson/msinttypes/*.h rapidjson/internal/*.h rapidjson/error/*.h problem/*.h
g++ -std=c++11 main.cc -DMAXSATNID=$(SUPERSOLVERNAMEID) -O3 -o timetabler
endif
ifneq ($(SUPERSOLVERNAMEID), 5)
SOLVERDIR = solver/$(SUPERSOLVERNAME)/solvers/glucose4.1
# THE REMAINING OF THE MAKEFILE SHOULD BE LEFT UNCHANGED
EXEC = timetabler
DEPDIR = mtl utils core
DEPDIR += ../../../$(SUPERSOLVERNAME) ../../encodings ../../algorithms ../../graph ../../classifier ../../clusterings ../../../../problem ../../../../rapidXMLParser
MROOT = $(PWD)/$(SOLVERDIR)
LFLAGS += -lgmpxx -lgmp
CFLAGS = -DMAXSATNID=$(SUPERSOLVERNAMEID) -O3 -Wall -Wno-parentheses -std=c++11 -DNSPACE=$(NSPACE) -DSOLVERNAME=$(SOLVERNAME) -DVERSION=$(VERSION)
ifeq ($(VERSION),simp)
DEPDIR += simp
CFLAGS += -DSIMP=1
ifeq ($(SOLVERDIR),glucored)
LFLAGS += -pthread
CFLAGS += -DGLUCORED
DEPDIR += reducer glucored
endif
endif
include $(MROOT)/mtl/template.mk
endif