src/work/makefile
author alpar
Tue, 27 Apr 2004 11:32:22 +0000
changeset 440 f92099d27236
parent 409 7ab7f083760a
child 493 bbd1db03f0fe
permissions -rw-r--r--
doc trimming.
     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