src/work/marci/makefile
author marci
Fri, 12 Mar 2004 20:09:35 +0000
changeset 180 95f0c5f3fc70
parent 176 f574ee5750fc
child 188 ad1417e74042
permissions -rw-r--r--
.
marci@180
     1
#CXX3 = g++-3.0
marci@73
     2
CXX2 = g++-2.95
marci@180
     3
#CXX3.3 = g++
marci@180
     4
CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
marci@180
     5
#CXXFLAGS = -W -Wall -ansi -pedantic -I. -I.. -I../alpar
klao@125
     6
LEDAROOT ?= /ledasrc/LEDA-4.1
marci@180
     7
BOOSTROOT ?= /home/marci/boost
marci@180
     8
INCLUDEDIRS ?= -I../../include -I.. -I. -I../{marci,jacint,alpar,klao,akos,athos} -I$(LEDAROOT)/incl -I$(BOOSTROOT)
marci@180
     9
CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic
marci@73
    10
marci@180
    11
marci@180
    12
BINARIES = edmonds_karp_demo preflow_demo_leda lg_vs_sg leda_graph_demo
marci@180
    13
#preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar
marci@73
    14
marci@73
    15
all: $(BINARIES)
marci@73
    16
marci@73
    17
.depend dep depend:
marci@180
    18
	-g++ $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null
marci@180
    19
marci@73
    20
marci@73
    21
marci@73
    22
makefile: .depend
marci@73
    23
sinclude .depend
marci@73
    24
marci@180
    25
leda_graph_demo.o:
marci@180
    26
	$(CXX3) -Wall -O0 -I.. -I../alpar -I$(LEDAROOT)/incl -I. -c leda_graph_demo.cc
marci@180
    27
marci@180
    28
leda_graph_demo: leda_graph_demo.o
marci@180
    29
	$(CXX3) -Wall -O0 -L$(LEDAROOT) -o leda_graph_demo leda_graph_demo.o -lG -lL -lm
marci@180
    30
marci@73
    31
edmonds_karp_demo: 
marci@174
    32
	$(CXX3) $(CXXFLAGS) -g -I. -I.. -o edmonds_karp_demo edmonds_karp_demo.cc
marci@174
    33
	$(CXX3) $(CXXFLAGS) -g -pg -O3 -I. -I.. -o edmonds_karp_demo_prof edmonds_karp_demo.cc
marci@174
    34
marci@174
    35
lg_vs_sg:
marci@174
    36
	$(CXX3) $(CXXFLAGS) -g -O3 -I. -I.. -o lg_vs_sg lg_vs_sg.cc
marci@73
    37
marci@96
    38
edmonds_karp_demo_alpar: 
marci@96
    39
	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../alpar -o edmonds_karp_demo_alpar edmonds_karp_demo_alpar.cc
marci@96
    40
marci@73
    41
preflow_demo_leda:
marci@73
    42
	$(CXX2) -W -Wall -O3 -DLEDA_PREFIX -I. -I$(LEDAROOT)/incl -L$(LEDAROOT) -o preflow_demo_leda preflow_demo_leda.cc -lP -lm -lL -lG
marci@73
    43
klao@125
    44
preflow_demo_leda_uj:
marci@180
    45
	$(CXX3) -Wall -O3 -I$(LEDAROOT)/incl -I. -L$(LEDAROOT) -o preflow_demo_leda_uj preflow_demo_leda_uj.cc -lG -lL -lm
klao@125
    46
marci@73
    47
preflow_demo_boost:
marci@73
    48
	$(CXX2) -ftemplate-depth-30 -O3 -I. -I/home/marci/boost -o preflow_demo_boost preflow_demo_boost.cc
marci@73
    49
marci@73
    50
edmonds_karp_demo_boost:
marci@73
    51
	$(CXX2) -ftemplate-depth-30 -O3 -I. -I/home/marci/boost -o edmonds_karp_demo_boost edmonds_karp_demo_boost.cc
marci@73
    52
marci@82
    53
preflow_demo_jacint: 
marci@82
    54
	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../jacint -o preflow_demo_jacint preflow_demo_jacint.cc
marci@82
    55
marci@82
    56
preflow_demo_athos: 
marci@82
    57
	$(CXX3) $(CXXFLAGS) -O3 -I. -I.. -I../athos -o preflow_demo_athos preflow_demo_athos.cc
marci@82
    58
marci@73
    59
clean:
marci@73
    60
	$(RM) *.o $(BINARIES) .depend
marci@73
    61
marci@73
    62
.PHONY: all clean dep depend