author | marci |
Fri, 16 Apr 2004 08:26:00 +0000 | |
changeset 335 | 999eb3cd7b49 |
parent 322 | a42dacfd0e3e |
child 511 | 325c9430723e |
permissions | -rw-r--r-- |
marci@313 | 1 |
CXX2 = g++-2.95 |
marci@313 | 2 |
CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
marci@313 | 3 |
CXX=$(CXX3) |
marci@313 | 4 |
CC=$(CXX) |
marci@313 | 5 |
#LEDAROOT ?= /ledasrc/LEDA-4.1 |
marci@313 | 6 |
#BOOSTROOT ?= /home/marci/boost |
athos@314 | 7 |
INCLUDEDIRS ?= -I../../include -I.. -I../{marci,jacint,alpar,athos,akos,klao} #-I$(BOOSTROOT) |
marci@313 | 8 |
#LEDAINCLUDE ?= -I$(LEDAROOT)/incl |
athos@331 | 9 |
CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic |
athos@36 | 10 |
|
marci@313 | 11 |
#LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo |
marci@313 | 12 |
BINARIES = suurballe |
marci@313 | 13 |
#gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda |
athos@36 | 14 |
|
marci@313 | 15 |
all: $(BINARIES) |
athos@36 | 16 |
|
marci@313 | 17 |
.depend dep depend: |
marci@313 | 18 |
-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null |
marci@313 | 19 |
# -g++ $(INCLUDEDIRS) $(LEDAINCLUDE) -M $(LEDABINARIES:=.cc) >> .depend #2>/dev/null |
marci@313 | 20 |
|
marci@313 | 21 |
|
marci@313 | 22 |
|
marci@313 | 23 |
makefile: .depend |
marci@313 | 24 |
sinclude .depend |
marci@313 | 25 |
|
marci@313 | 26 |
clean: |
marci@313 | 27 |
$(RM) *.o $(BINARIES) .depend |
marci@313 | 28 |
|
marci@313 | 29 |
.PHONY: all clean dep depend |