src/work/makefile
author alpar
Mon, 26 Apr 2004 09:00:12 +0000
changeset 406 e8377ac921b6
parent 392 b8d635e1672d
child 409 7ab7f083760a
permissions -rw-r--r--
Docs are now divided into modules.
beckerjc@149
     1
INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos}
marci@393
     2
CXXFLAGS = -g -O0 -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@393
     8
#CXX := $(shell type -p g++-3.4 || type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
marci@393
     9
CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
klao@34
    10
CC := $(CXX)
klao@34
    11
klao@34
    12
klao@34
    13
all: $(BINARIES)
klao@34
    14
klao@34
    15
################
klao@34
    16
# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
klao@34
    17
# all elo.
klao@34
    18
# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
klao@34
    19
# irni semmit.
klao@34
    20
klao@34
    21
#proba: proba.o seged.o
klao@34
    22
klao@34
    23
################
klao@34
    24
klao@132
    25
klao@132
    26
.depend dep depend:
marci@301
    27
	-$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
klao@34
    28
klao@34
    29
makefile: .depend
klao@34
    30
sinclude .depend
alpar@3
    31
alpar@3
    32
clean:
klao@34
    33
	$(RM) *.o $(BINARIES) .depend
alpar@7
    34
klao@34
    35
.PHONY: all clean dep depend