author | klao |
Tue, 27 Jan 2004 19:16:38 +0000 | |
changeset 37 | e0e41f9e2be5 |
parent 7 | 0f527d1b9149 |
child 38 | edea2e1dc6ef |
permissions | -rw-r--r-- |
klao@34 | 1 |
CXXFLAGS=-g -O -Wall -I../include -I. |
alpar@3 | 2 |
|
klao@34 | 3 |
BINARIES = graphdemo bfsdemo bfsdemo2 proba |
alpar@3 | 4 |
|
klao@34 | 5 |
# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam |
klao@34 | 6 |
# ismert rendszeren :-) (Misi) |
klao@34 | 7 |
CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
klao@34 | 8 |
CC := $(CXX) |
klao@34 | 9 |
|
klao@34 | 10 |
|
klao@34 | 11 |
all: $(BINARIES) |
klao@34 | 12 |
|
klao@34 | 13 |
################ |
klao@34 | 14 |
# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol |
klao@34 | 15 |
# all elo. |
klao@34 | 16 |
# Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell |
klao@34 | 17 |
# irni semmit. |
klao@34 | 18 |
|
klao@34 | 19 |
#proba: proba.o seged.o |
klao@34 | 20 |
|
klao@34 | 21 |
################ |
klao@34 | 22 |
|
klao@34 | 23 |
dep depend: |
klao@34 | 24 |
$(CXX) $(CXXFLAGS) -MM *.cc > .depend |
klao@34 | 25 |
.depend: |
klao@34 | 26 |
$(CXX) $(CXXFLAGS) -MM *.cc > .depend |
klao@34 | 27 |
|
klao@34 | 28 |
makefile: .depend |
klao@34 | 29 |
sinclude .depend |
alpar@3 | 30 |
|
alpar@3 | 31 |
clean: |
klao@34 | 32 |
$(RM) *.o $(BINARIES) .depend |
alpar@7 | 33 |
|
klao@34 | 34 |
.PHONY: all clean dep depend |