Last change
on this file since 34:2b607665c9e2 was
34:2b607665c9e2,
checked in by Mihaly Barasz, 21 years ago
|
Okos makefile
depend szabalyok
egyszeru valami.cc -> valami esetek implicit szabalyokkal
|
File size:
745 bytes
|
Rev | Line | |
---|
[34] | 1 | CXXFLAGS=-g -O -Wall -I../include -I. |
---|
[3] | 2 | |
---|
[34] | 3 | BINARIES = graphdemo bfsdemo bfsdemo2 proba |
---|
[3] | 4 | |
---|
[34] | 5 | # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam |
---|
| 6 | # ismert rendszeren :-) (Misi) |
---|
| 7 | CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
---|
| 8 | CC := $(CXX) |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | all: $(BINARIES) |
---|
| 12 | |
---|
| 13 | ################ |
---|
| 14 | # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol |
---|
| 15 | # all elo. |
---|
| 16 | # Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell |
---|
| 17 | # irni semmit. |
---|
| 18 | |
---|
| 19 | #proba: proba.o seged.o |
---|
| 20 | |
---|
| 21 | ################ |
---|
| 22 | |
---|
| 23 | dep depend: |
---|
| 24 | $(CXX) $(CXXFLAGS) -MM *.cc > .depend |
---|
| 25 | .depend: |
---|
| 26 | $(CXX) $(CXXFLAGS) -MM *.cc > .depend |
---|
| 27 | |
---|
| 28 | makefile: .depend |
---|
| 29 | sinclude .depend |
---|
[3] | 30 | |
---|
| 31 | clean: |
---|
[34] | 32 | $(RM) *.o $(BINARIES) .depend |
---|
[7] | 33 | |
---|
[34] | 34 | .PHONY: all clean dep depend |
---|
Note: See
TracBrowser
for help on using the repository browser.