diff -r 19f3943521ab -r 3fefabfd00b7 src/work/marci/experiment/makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/work/marci/experiment/makefile Sat Apr 03 17:26:46 2004 +0000 @@ -0,0 +1,35 @@ +INCLUDEDIRS ?= -I. -I../../../include -I.. +CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic + +BINARIES ?= iterator_bfs_demo iterator_bfs_demo_1 edmonds_karp_demo edmonds_karp_demo_1 + +# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam +# ismert rendszeren :-) (Misi) +CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) +CC := $(CXX) + + +all: $(BINARIES) + +################ +# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol +# all elo. +# Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell +# irni semmit. + +#proba: proba.o seged.o + +################ + + +.depend dep depend: + -$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null +# -$(CXX) $(CXXFLAGS) -M *.cc > .depend + +makefile: .depend +sinclude .depend + +clean: + $(RM) *.o $(BINARIES) .depend + +.PHONY: all clean dep depend