forked from doolin/disambiguator
-
Notifications
You must be signed in to change notification settings - Fork 17
/
makefile.orig
76 lines (55 loc) · 2.49 KB
/
makefile.orig
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
74
75
76
#CXX=icpc
#CC=icc
#CFLAGS=-O3 -g -xsse4.1 -ipo -static-intel -Wall
CXX=g++
CC=gcc
#CFLAGS=-O3 -g -Wall -I/usr/local/include -L/usr/local/lib
# Profiling
#CFLAGS=-O3 -pg -Wall -I/usr/local/include -L/usr/local/lib
# Debugging
CFLAGS=-O0 -g -Wall -fno-inline -I/usr/local/include -L/usr/local/lib
OOQPINCLUDEDIR=/usr/local/include/ooqp
ILOGINSTALLDIR=/home/ysun/ILOG/CPLEX_Studio_AcademicResearch122
CPLEXINCLUDE=$(ILOGINSTALLDIR)/cplex/include
CONCERTINCLUDE=$(ILOGINSTALLDIR)/concert/include
#CPLEXLIB=$(ILOGINSTALLDIR)/cplex/lib/x86_sles10_4.1/static_pic
CPLEXLIB=$(ILOGINSTALLDIR)/cplex/lib/x86-64_sles10_4.1/static_pic
#CONCERTLIB=$(ILOGINSTALLDIR)/concert/lib/x86_sles10_4.1/static_pic
CONCERTLIB=$(ILOGINSTALLDIR)/concert/lib/x86-64_sles10_4.1/static_pic
all:exedisambig txt2sqlite3
exedisambig: Disambigmain.o DisambigDefs.o DisambigRatios.o DisambigEngine.o DisambigFileOper.o strcmp95.o DisambigComp.o DisambigTraining.o Threading.o DisambigCluster.o DisambigRatioSmoothing.o DisambigNewCluster.o DisambigCustomizedDefs.o DisambigPostProcess.o DisambigUtilities.o
$(CXX) -o $@ $? $(CFLAGS) -L$(CPLEXLIB) -lilocplex -lcplex -L$(CONCERTLIB) -lconcert -lm -lpthread
Disambigmain.o: Disambigmain.cpp
$(CXX) -c $? $(CFLAGS)
DisambigDefs.o: DisambigDefs.cpp DisambigDefs.h
$(CXX) -c $? $(CFLAGS)
DisambigRatios.o: DisambigRatios.cpp DisambigRatios.h
$(CXX) -c $? $(CFLAGS)
DisambigEngine.o: DisambigEngine.cpp DisambigEngine.h
$(CXX) -c $? $(CFLAGS)
DisambigFileOper.o: DisambigFileOper.cpp DisambigFileOper.h
$(CXX) -c $? $(CFLAGS)
DisambigComp.o: DisambigComp.cpp DisambigComp.h
$(CXX) -c $? $(CFLAGS)
DisambigTraining.o: DisambigTraining.h DisambigTraining.cpp
$(CXX) -c $? $(CFLAGS)
strcmp95.o: strcmp95.c strcmp95.h
$(CC) -c $? $(CFLAGS)
Threading.o: Threading.cpp Threading.h
$(CXX) -c $? $(CFLAGS)
DisambigCluster.o: DisambigCluster.cpp DisambigCluster.h
$(CXX) -c $? $(CFLAGS)
DisambigRatioSmoothing.o: DisambigRatioSmoothing.cpp
$(CXX) -c $? $(CFLAGS) -I$(OOQPINCLUDEDIR) -I$(CPLEXINCLUDE) -I$(CONCERTINCLUDE) -DIL_STD -DNDEBUG -w
DisambigNewCluster.o: DisambigNewCluster.h DisambigNewCluster.cpp
$(CXX) -c $? $(CFLAGS)
DisambigCustomizedDefs.o: DisambigCustomizedDefs.h DisambigCustomizedDefs.cpp
$(CXX) -c $? $(CFLAGS)
DisambigPostProcess.o: DisambigPostProcess.h DisambigPostProcess.cpp
$(CXX) -c $? $(CFLAGS)
DisambigUtilities.o: DisambigUtilities.h DisambigUtilities.cpp
$(CXX) -c $? $(CFLAGS)
clean:
rm *.o *.gch
txt2sqlite3: txt2sqlite3.h txt2sqlite3.cpp
$(CXX) -o $@ $? $(CFLAGS) -lsqlite3