src/work/athos/lp/Makefile
author athos
Thu, 07 Apr 2005 15:22:03 +0000
changeset 1319 6e277ba3fc76
parent 1316 daaf6b5c28d6
child 1339 26a88d12d1a6
permissions -rw-r--r--
Cplex interface has improved a lot.
athos@1316
     1
CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I..
alpar@1254
     2
athos@1319
     3
all: lp_sample_cplex
alpar@1254
     4
alpar@1256
     5
clean:
alpar@1256
     6
	rm lp_test *.o
alpar@1256
     7
athos@1316
     8
lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h 
athos@1316
     9
	$(CXX) $(CXXFLAGS) -o $@ -c $<
athos@1316
    10
athos@1314
    11
athos@1319
    12
lp_solver_skeleton.o: lp_solver_skeleton.cc lp_solver_skeleton.h lp_base.h 
athos@1316
    13
	$(CXX) $(CXXFLAGS) -o $@ -c $<
alpar@1253
    14
athos@1319
    15
lp_glpk.o: ../../../lemon/lp_glpk.cc ../../../lemon/lp_glpk.h ../../../lemon/lp_base.h
athos@1316
    16
	$(CXX) $(CXXFLAGS) -o $@ -c $<
athos@1314
    17
athos@1319
    18
lp_cplex.o: lp_cplex.cc lp_cplex.h ../../../lemon/lp_base.h
athos@1319
    19
	$(CXX) $(CXXFLAGS) -I/usr/local/cplex/cplex75/include -o $@ -c $<
athos@1314
    20
athos@1319
    21
lp_sample.o: lp_sample.cc
athos@1314
    22
athos@1314
    23
lp_sample: lp_sample.o lp_base.o lp_glpk.o 
athos@1314
    24
	$(CXX) -o $@ $^ -lglpk
athos@1314
    25
athos@1319
    26
lp_sample_cplex: lp_sample_cplex.o lp_base.o lp_glpk.o 
athos@1319
    27
	$(CXX) $(CXXFLAGS) -I/usr/local/cplex/cplex75/include -o $@ $^ -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt -lcplex -lm -lpthread