COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/lp/makefile @ 777:a82713ed19f3

Last change on this file since 777:a82713ed19f3 was 764:615aca7091d2, checked in by marci, 20 years ago

An experimental LPSolverWrapper class which uses glpk. For a short
demo, max flow problems are solved with it. This demo does not
demonstrates, but the main aims of this class are row and column
generation capabilities, i.e. to be a core for easily
implementable branch-and-cut a column generetion algorithms.

File size: 1.7 KB
Line 
1#INCLUDEDIRS ?= -I.. -I. -I./{marci,jacint,alpar,klao,akos}
2GLPKROOT = /usr/local/glpk-4.4
3INCLUDEDIRS ?= -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  = -L$(GLPKROOT)/lib -lglpk
7
8BINARIES = 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.