src/work/makefile
author marci
Mon, 26 Apr 2004 15:14:23 +0000
changeset 417 4ce3d5f675ea
parent 409 7ab7f083760a
child 493 bbd1db03f0fe
permissions -rw-r--r--
Better control of gcc version
     1 INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos}
     2 CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic
     3 
     4 BINARIES ?= bin_heap_demo
     5 
     6 # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
     7 # ismert rendszeren :-)  (Misi)
     8 ifdef GCCVER
     9 CXX := g++-$(GCCVER)
    10 else
    11 CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
    12 endif
    13 
    14 CC := $(CXX)
    15 
    16 
    17 all: $(BINARIES)
    18 
    19 ################
    20 # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
    21 # all elo.
    22 # Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
    23 # irni semmit.
    24 
    25 #proba: proba.o seged.o
    26 
    27 ################
    28 
    29 
    30 .depend dep depend:
    31 	-$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
    32 
    33 makefile: .depend
    34 sinclude .depend
    35 
    36 clean:
    37 	$(RM) *.o $(BINARIES) .depend
    38 
    39 .PHONY: all clean dep depend