beckerjc@149: INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos} beckerjc@149: CXXFLAGS = -g -O -Wall $(INCLUDEDIRS) -ansi -pedantic alpar@3: klao@347: BINARIES ?= bin_heap_demo alpar@3: klao@34: # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam klao@34: # ismert rendszeren :-) (Misi) klao@34: 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: CC := $(CXX) klao@34: klao@34: klao@34: all: $(BINARIES) klao@34: klao@34: ################ klao@34: # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol klao@34: # all elo. klao@34: # Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell klao@34: # irni semmit. klao@34: klao@34: #proba: proba.o seged.o klao@34: klao@34: ################ klao@34: klao@132: klao@132: .depend dep depend: marci@301: -$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend klao@34: klao@34: makefile: .depend klao@34: sinclude .depend alpar@3: alpar@3: clean: klao@34: $(RM) *.o $(BINARIES) .depend alpar@7: klao@34: .PHONY: all clean dep depend