src/work/athos/lp/Makefile
changeset 1321 bc3a4c498eb2
parent 1316 daaf6b5c28d6
child 1339 26a88d12d1a6
equal deleted inserted replaced
7:284704965b9d 8:d167ea72d10e
     1 CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I..
     1 CXXFLAGS = -Wall -ggdb --no-inline -I../../.. -I..
     2 
     2 
     3 all: lp_sample
     3 all: lp_sample_cplex
     4 
     4 
     5 clean:
     5 clean:
     6 	rm lp_test *.o
     6 	rm lp_test *.o
     7 
     7 
     8 lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h 
     8 lp_base.o: ../../../lemon/lp_base.cc ../../../lemon/lp_base.h 
     9 	$(CXX) $(CXXFLAGS) -o $@ -c $<
     9 	$(CXX) $(CXXFLAGS) -o $@ -c $<
    10 
    10 
    11 
    11 
    12 lp_solver_skeleton.o: lp_solver_skeleton.cc lp_solver_skeleton.h lp_base.h \
    12 lp_solver_skeleton.o: lp_solver_skeleton.cc lp_solver_skeleton.h lp_base.h 
    13 		lin_expr.h
       
    14 	$(CXX) $(CXXFLAGS) -o $@ -c $<
    13 	$(CXX) $(CXXFLAGS) -o $@ -c $<
    15 
    14 
    16 lp_glpk.o: ../../../lemon/lp_glpk.cc ../../../lemon/lp_glpk.h ../../../lemon/lp_base.h lin_expr.h
    15 lp_glpk.o: ../../../lemon/lp_glpk.cc ../../../lemon/lp_glpk.h ../../../lemon/lp_base.h
    17 	$(CXX) $(CXXFLAGS) -o $@ -c $<
    16 	$(CXX) $(CXXFLAGS) -o $@ -c $<
    18 
    17 
       
    18 lp_cplex.o: lp_cplex.cc lp_cplex.h ../../../lemon/lp_base.h
       
    19 	$(CXX) $(CXXFLAGS) -I/usr/local/cplex/cplex75/include -o $@ -c $<
    19 
    20 
    20 lp_sample.o: lp_sample.cc 
    21 lp_sample.o: lp_sample.cc
    21 
    22 
    22 lp_sample: lp_sample.o lp_base.o lp_glpk.o 
    23 lp_sample: lp_sample.o lp_base.o lp_glpk.o 
    23 	$(CXX) -o $@ $^ -lglpk
    24 	$(CXX) -o $@ $^ -lglpk
    24 
    25 
       
    26 lp_sample_cplex: lp_sample_cplex.o lp_base.o lp_glpk.o 
       
    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