src/work/makefile
author klao
Tue, 27 Jan 2004 19:17:46 +0000
changeset 38 edea2e1dc6ef
parent 34 2b607665c9e2
child 48 55fa34646895
permissions -rw-r--r--
-MM sajnos mashogy mukodik meg a 3.0 alatt
-ansi -pedantic
bin_heap_demo hozzaadva a binarisokhoz
klao@38
     1
INCLUDEDIRS=-I../include -I.
klao@38
     2
CXXFLAGS=-g -O -Wall $(INCLUDEDIRS) -ansi -pedantic
alpar@3
     3
klao@38
     4
BINARIES = graphdemo bfsdemo bfsdemo2 proba 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)
klao@34
     8
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
     9
CC := $(CXX)
klao@34
    10
klao@34
    11
klao@34
    12
all: $(BINARIES)
klao@34
    13
klao@34
    14
################
klao@34
    15
# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
klao@34
    16
# all elo.
klao@34
    17
# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
klao@34
    18
# irni semmit.
klao@34
    19
klao@34
    20
#proba: proba.o seged.o
klao@34
    21
klao@34
    22
################
klao@34
    23
klao@34
    24
dep depend:
klao@38
    25
	$(CXX) $(CXXFLAGS) -M *.cc > .depend
klao@34
    26
.depend:
klao@38
    27
	$(CXX) $(CXXFLAGS) -M *.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