src/work/athos/lp/makefile
changeset 1240 88a2ab6bfc4a
parent 1153 4b0468de3a31
child 1241 dadc9987c537
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/work/athos/lp/makefile	Tue Mar 22 11:45:47 2005 +0000
     1.3 @@ -0,0 +1,73 @@
     1.4 +#INCLUDEDIRS ?= -I.. -I. -I./{marci,jacint,alpar,klao,akos}
     1.5 +#GLPKROOT = /usr/local/glpk-4.4
     1.6 +INCLUDEDIRS ?= -I/home/marci/boost -I/usr/local/cplex/cplex75/include -I../../{marci,alpar,klao,akos,athos} -I. -I../../.. -I../.. -I..# -I$(GLPKROOT)/include
     1.7 +#INCLUDEDIRS ?= -I../.. -I../.. -I../../{marci,jacint,alpar,klao,akos} -I/usr/local/glpk-4.4/include
     1.8 +CXXFLAGS = -g -O2 -W -Wall $(INCLUDEDIRS) -ansi -pedantic
     1.9 +LDFLAGS  =  -lglpk#-lcplex -lm -lpthread -lilocplex -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt# -L$(GLPKROOT)/lib
    1.10 +
    1.11 +BINARIES = magic_square max_flow_expression expression_test max_flow_by_lp# sample sample2 sample11 sample15
    1.12 +
    1.13 +#include ../makefile
    1.14 +
    1.15 +# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
    1.16 +# ismert rendszeren :-)  (Misi)
    1.17 +ifdef GCCVER
    1.18 +CXX := g++-$(GCCVER)
    1.19 +else
    1.20 +CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
    1.21 +endif
    1.22 +
    1.23 +ifdef DEBUG
    1.24 +CXXFLAGS += -DDEBUG
    1.25 +endif
    1.26 +
    1.27 +CC := $(CXX)
    1.28 +
    1.29 +
    1.30 +all: $(BINARIES)
    1.31 +
    1.32 +################
    1.33 +# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
    1.34 +# all elo.
    1.35 +# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
    1.36 +# irni semmit.
    1.37 +
    1.38 +#proba: proba.o seged.o
    1.39 +
    1.40 +################
    1.41 +
    1.42 +
    1.43 +# .depend dep depend:
    1.44 +# 	-$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
    1.45 +
    1.46 +#makefile: .depend
    1.47 +#sinclude .depend
    1.48 +#moert nem megy az eredeti /usr/bin/ld-vel?
    1.49 +
    1.50 +# %: %.o
    1.51 +# 	$(CXX) -o $@ $< $(LDFLAGS)
    1.52 +
    1.53 +# %.o: %.cc
    1.54 +# 	$(CXX) $(CXXFLAGS) -c $<
    1.55 +
    1.56 +%: %.cc
    1.57 +	$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
    1.58 +
    1.59 +sample11prof: sample11prof.o
    1.60 +	 $(CXX) -pg -o sample11prof sample11prof.o -L$(GLPKROOT)/lib -lglpk
    1.61 +sample11prof.o: sample11.cc
    1.62 +	$(CXX) -pg $(CXXFLAGS) -c -o sample11prof.o sample11.cc
    1.63 +
    1.64 +# sample.o: sample.cc
    1.65 +# 	$(CXX) $(CXXFLAGS) -c -o sample.o sample.cc
    1.66 +
    1.67 +# sample2: sample2.o
    1.68 +# 	$(CXX) -o sample2 sample2.o -L/usr/local/glpk-4.4/lib -lglpk
    1.69 +# sample2.o: sample2.cc
    1.70 +# 	$(CXX) $(CXXFLAGS) -c -o sample2.o sample2.cc
    1.71 +
    1.72 +
    1.73 +clean:
    1.74 +	$(RM) *.o $(BINARIES) .depend
    1.75 +
    1.76 +.PHONY: all clean dep depend