COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/lp/makefile @ 1081:c0ad2673b11f

Last change on this file since 1081:c0ad2673b11f was 1075:789bad021e2d, checked in by marci, 20 years ago

:-}

File size: 1.9 KB
Line 
1#INCLUDEDIRS ?= -I.. -I. -I./{marci,jacint,alpar,klao,akos}
2#GLPKROOT = /usr/local/glpk-4.4
3INCLUDEDIRS ?= -I/home/marci/boost -I/usr/local/cplex/cplex75/include -I../../{marci,alpar,klao,akos,athos} -I. -I../../.. -I../.. -I..# -I$(GLPKROOT)/include
4#INCLUDEDIRS ?= -I../.. -I../.. -I../../{marci,jacint,alpar,klao,akos} -I/usr/local/glpk-4.4/include
5CXXFLAGS = -g -O2 -W -Wall $(INCLUDEDIRS) -ansi -pedantic
6LDFLAGS  =  -lglpk#-lcplex -lm -lpthread -lilocplex -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt# -L$(GLPKROOT)/lib
7
8BINARIES = cplex_1 max_flow_by_lp# sample sample2 sample11 sample15
9
10#include ../makefile
11
12# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
13# ismert rendszeren :-)  (Misi)
14ifdef GCCVER
15CXX := g++-$(GCCVER)
16else
17CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
18endif
19
20ifdef DEBUG
21CXXFLAGS += -DDEBUG
22endif
23
24CC := $(CXX)
25
26
27all: $(BINARIES)
28
29################
30# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
31# all elo.
32# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
33# irni semmit.
34
35#proba: proba.o seged.o
36
37################
38
39
40# .depend dep depend:
41#       -$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
42
43#makefile: .depend
44#sinclude .depend
45#moert nem megy az eredeti /usr/bin/ld-vel?
46
47# %: %.o
48#       $(CXX) -o $@ $< $(LDFLAGS)
49
50# %.o: %.cc
51#       $(CXX) $(CXXFLAGS) -c $<
52
53%: %.cc
54        $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
55
56sample11prof: sample11prof.o
57         $(CXX) -pg -o sample11prof sample11prof.o -L$(GLPKROOT)/lib -lglpk
58sample11prof.o: sample11.cc
59        $(CXX) -pg $(CXXFLAGS) -c -o sample11prof.o sample11.cc
60
61# sample.o: sample.cc
62#       $(CXX) $(CXXFLAGS) -c -o sample.o sample.cc
63
64# sample2: sample2.o
65#       $(CXX) -o sample2 sample2.o -L/usr/local/glpk-4.4/lib -lglpk
66# sample2.o: sample2.cc
67#       $(CXX) $(CXXFLAGS) -c -o sample2.o sample2.cc
68
69
70clean:
71        $(RM) *.o $(BINARIES) .depend
72
73.PHONY: all clean dep depend
Note: See TracBrowser for help on using the repository browser.