src/work/makefile
author alpar
Sat, 17 Apr 2004 13:15:53 +0000
changeset 348 b63ea19e502e
parent 301 7eb324ed5da3
child 389 770cc1f4861f
permissions -rw-r--r--
A bool Edge Map with iterators that goes through the true or the false edges.
beckerjc@149
     1
INCLUDEDIRS ?= -I../include -I. -I./{marci,jacint,alpar,klao,akos}
beckerjc@149
     2
CXXFLAGS = -g -O -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)
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@132
    24
klao@132
    25
.depend dep depend:
marci@301
    26
	-$(CXX) $(CXXFLAGS) -M $(BINARIES:=.cc) > .depend
klao@34
    27
klao@34
    28
makefile: .depend
klao@34
    29
sinclude .depend
alpar@3
    30
alpar@3
    31
clean:
klao@34
    32
	$(RM) *.o $(BINARIES) .depend
alpar@7
    33
klao@34
    34
.PHONY: all clean dep depend