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