INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos} CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic BINARIES ?= bin_heap_demo # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam # ismert rendszeren :-) (Misi) ifdef GCCVER CXX := g++-$(GCCVER) else CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) endif ifdef DEBUG CXXFLAGS += -DDEBUG endif CC := $(CXX) all: $(BINARIES) ################ # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol # all elo. # Kiveve ha siman file.cc -> file esetrol van szo, amikor is nem kell # irni semmit. #proba: proba.o seged.o ################ .depend dep depend: -$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend makefile: .depend sinclude .depend clean: $(RM) *.o $(BINARIES) .depend .PHONY: all clean dep depend