author | alpar |
Mon, 06 Sep 2004 17:13:07 +0000 | |
changeset 811 | e27135322727 |
permissions | -rw-r--r-- |
marci@281 | 1 |
INCLUDEDIRS ?= -I. -I../../../include -I.. |
marci@281 | 2 |
CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic |
marci@281 | 3 |
|
marci@281 | 4 |
BINARIES ?= iterator_bfs_demo iterator_bfs_demo_1 edmonds_karp_demo edmonds_karp_demo_1 |
marci@281 | 5 |
|
marci@281 | 6 |
# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam |
marci@281 | 7 |
# ismert rendszeren :-) (Misi) |
marci@281 | 8 |
CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
marci@281 | 9 |
CC := $(CXX) |
marci@281 | 10 |
|
marci@281 | 11 |
|
marci@281 | 12 |
all: $(BINARIES) |
marci@281 | 13 |
|
marci@281 | 14 |
################ |
marci@281 | 15 |
# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol |
marci@281 | 16 |
# all elo. |
marci@281 | 17 |
# Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell |
marci@281 | 18 |
# irni semmit. |
marci@281 | 19 |
|
marci@281 | 20 |
#proba: proba.o seged.o |
marci@281 | 21 |
|
marci@281 | 22 |
################ |
marci@281 | 23 |
|
marci@281 | 24 |
|
marci@281 | 25 |
.depend dep depend: |
marci@281 | 26 |
-$(CXX) $(INCLUDEDIRS) -M $(BINARIES:=.cc) > .depend #2>/dev/null |
marci@281 | 27 |
# -$(CXX) $(CXXFLAGS) -M *.cc > .depend |
marci@281 | 28 |
|
marci@281 | 29 |
makefile: .depend |
marci@281 | 30 |
sinclude .depend |
marci@281 | 31 |
|
marci@281 | 32 |
clean: |
marci@281 | 33 |
$(RM) *.o $(BINARIES) .depend |
marci@281 | 34 |
|
marci@281 | 35 |
.PHONY: all clean dep depend |