Rev | Line | |
---|
[149] | 1 | INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos} |
---|
[409] | 2 | CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic |
---|
[3] | 3 | |
---|
[347] | 4 | BINARIES ?= bin_heap_demo |
---|
[3] | 5 | |
---|
[34] | 6 | # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam |
---|
| 7 | # ismert rendszeren :-) (Misi) |
---|
[409] | 8 | CXX := $(shell type -p g++-3.4 || type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
---|
| 9 | #CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) |
---|
[34] | 10 | CC := $(CXX) |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | all: $(BINARIES) |
---|
| 14 | |
---|
| 15 | ################ |
---|
| 16 | # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol |
---|
| 17 | # all elo. |
---|
| 18 | # Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell |
---|
| 19 | # irni semmit. |
---|
| 20 | |
---|
| 21 | #proba: proba.o seged.o |
---|
| 22 | |
---|
| 23 | ################ |
---|
| 24 | |
---|
[132] | 25 | |
---|
| 26 | .depend dep depend: |
---|
[301] | 27 | -$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend |
---|
[34] | 28 | |
---|
| 29 | makefile: .depend |
---|
| 30 | sinclude .depend |
---|
[3] | 31 | |
---|
| 32 | clean: |
---|
[34] | 33 | $(RM) *.o $(BINARIES) .depend |
---|
[7] | 34 | |
---|
[34] | 35 | .PHONY: all clean dep depend |
---|
Note: See
TracBrowser
for help on using the repository browser.