1 CXXFLAGS=-g -O -Wall -I../include -I.
 
     3 BINARIES = graphdemo bfsdemo bfsdemo2 proba
 
     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++)
 
    14 # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
 
    16 # Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
 
    19 #proba: proba.o seged.o
 
    24 	$(CXX) $(CXXFLAGS) -MM *.cc > .depend
 
    26 	$(CXX) $(CXXFLAGS) -MM *.cc > .depend
 
    32 	$(RM) *.o $(BINARIES) .depend
 
    34 .PHONY: all clean dep depend