src/work/makefile
author alpar
Fri, 20 Feb 2004 21:45:07 +0000
changeset 105 a3c73e9b9b2e
parent 51 41133bd4ed94
child 127 dcace15b1874
permissions -rw-r--r--
marci -> hugo replacements
resize -> update replacements
     1 INCLUDEDIRS=-I../include -I. -I./jacint
     2 CXXFLAGS=-g -O -Wall $(INCLUDEDIRS) -ansi -pedantic
     3 
     4 BINARIES = bin_heap_demo marci_graph_demo iterator_bfs_dfs_demo graphdemo bfsdemo bfsdemo2
     5 
     6 # Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
     7 # ismert rendszeren :-)  (Misi)
     8 CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     9 CC := $(CXX)
    10 
    11 
    12 all: $(BINARIES)
    13 
    14 ################
    15 # Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
    16 # all elo.
    17 # Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
    18 # irni semmit.
    19 
    20 #proba: proba.o seged.o
    21 
    22 ################
    23 
    24 dep depend:
    25 	$(CXX) $(CXXFLAGS) -M *.cc > .depend
    26 .depend:
    27 	$(CXX) $(CXXFLAGS) -M *.cc > .depend
    28 
    29 makefile: .depend
    30 sinclude .depend
    31 
    32 clean:
    33 	$(RM) *.o $(BINARIES) .depend
    34 
    35 .PHONY: all clean dep depend