Skip to content
Snippets Groups Projects
Commit bd573393 authored by Thorsten Wißmann's avatar Thorsten Wißmann
Browse files

Glue GMLMIP tool into coalg

parent d4135ed7
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
using namespace std;
vector<SatisfyingAssignment> sat_ass_stack;
/* Error handler for running out of BDD nodes */
void error_handler(int errorcode){
......
......@@ -22,11 +22,29 @@ CHECKDEP := 1
# The projects which will be compiled if "make all" is used.
PROGS := coalg coalgcompare
GMLFOBJS = \
GMLMIP-0.1/formulas/formula.o \
GMLMIP-0.1/formulas/GML_formula.o \
GMLMIP-0.1/formulas/PML_formula.o \
GMLMIP-0.1/formulas/rational.o \
GMLMIP-0.1/formulas/satisfyingassignment.o
GMLROBJS = \
GMLMIP-0.1/rules/premise.o \
GMLMIP-0.1/rules/GML_premise.o \
GMLMIP-0.1/rules/PML_premise.o \
GMLMIP-0.1/rules/valuation.o \
GMLMIP-0.1/rules/setofconclusions.o \
GMLMIP-0.1/rules/sizefunctions.o \
GMLMIP-0.1/rules/radixtree.o
GMLOBJS = $(GMLROBJS) $(GMLFOBJS) GMLMIP-0.1/onestep.o
LIBS := unix str graph
SOURCESMLI := $(wildcard *.mli)
SOURCESML := $(wildcard *.ml)
INCS ?= -I/usr/include -I/usr/lib/ocaml -I/usr/local/lib/ocaml -I.
CXXFLAGS += -Wall -Werror $(INCS)
CXXFLAGS += -Wall $(INCS)
LDXX ?= g++
OCAMLC := ocamlc.opt
......@@ -57,6 +75,11 @@ LIBSML := $(patsubst %.ml,%$(SUFFIX),$(SOURCESML))
.PHONY: all
all: $(PROGS) gmlmip
.PHONY: phony
# don't do anything here
phony:
@:
.PHONY: gmlmip
gmlmip:
make -C GMLMIP-0.1
......@@ -67,8 +90,17 @@ minisat.cma: minisat.cmo minisat_stub.o
minisat.cmxa: minisat.cmx minisat_stub.o
$(OCAMLOPT) -a -o minisat.cmxa minisat.cmx minisat_stub.o -cclib -lminisat
GMLMIP-0.1/onestep.o: phony
make -C GMLMIP-0.1 onestep.o
gmlmip.cma: gmlmip.cmo gmlmip_stub.o $(GMLOBJS)
$(OCAMLC) -a -o $@ $^ -custom -cclib -lbdd -cclib -lm -cclib -lglpk
gmlmip.cmxa: gmlmip.cmx gmlmip_stub.o $(GMLOBJS)
$(OCAMLOPT) -a -o $@ $^ -cclib -lbdd -cclib -lm -cclib -lglpk
# Object files... sorted topologically by their dependency...
COALG_OBJS := minisat$(SUFFIXLIB) \
COALG_OBJS := minisat$(SUFFIXLIB) gmlmip$(SUFFIXLIB) \
genAndComp$(SUFFIX) MiscSolver$(SUFFIX) altGenlex$(SUFFIX) HashConsing$(SUFFIX) \
ALCFormula$(SUFFIX) ALCMisc$(SUFFIX) ALCGraph$(SUFFIX) \
CoAlgFormula$(SUFFIX) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment