COIN-OR::LEMON - Graph Library

Changeset 34:2b607665c9e2 in lemon-0.x


Ignore:
Timestamp:
01/25/04 19:33:17 (16 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@47
Message:

Okos makefile

depend szabalyok
egyszeru valami.cc -> valami esetek implicit szabalyokkal

Location:
src/work
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/makefile

    r7 r34  
    1 CXXFLAGS=-g -Wall -I../include
     1CXXFLAGS=-g -O -Wall -I../include -I.
    22
    3 none:
    4         @echo 'Please use one of these forms:'
    5         @echo '   make all'
    6         @echo '   make clean'
    7         @echo '   make graphdemo'
    8         @echo '   make bfsdemo'
    9         @echo '   make bfsdemo2'
     3BINARIES = graphdemo bfsdemo bfsdemo2 proba
    104
    11 all: graphdemo bfsdemo bfsdemo2
     5# Hat, ez elismerem, hogy nagyon ronda, de mukodik minden altalam
     6# ismert rendszeren :-)  (Misi)
     7CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++)
     8CC := $(CXX)
     9
     10
     11all: $(BINARIES)
     12
     13################
     14# Minden binarishoz egy sor, felsorolva, hogy mely object file-okbol
     15# all elo.
     16# Kiveve ha siman file.cc -> file  esetrol van szo, amikor is nem kell
     17# irni semmit.
     18
     19#proba: proba.o seged.o
     20
     21################
     22
     23dep depend:
     24        $(CXX) $(CXXFLAGS) -MM *.cc > .depend
     25.depend:
     26        $(CXX) $(CXXFLAGS) -MM *.cc > .depend
     27
     28makefile: .depend
     29sinclude .depend
    1230
    1331clean:
    14         rm graphdemo bfsdemo bfsdemo2
     32        $(RM) *.o $(BINARIES) .depend
    1533
    16 graphdemo: graphdemo.cc ../include/graph.h \
    17         ../include/oldgraph.h makefile
    18         g++ $(CXXFLAGS) -o graphdemo graphdemo.cc
    19 
    20 bfsdemo: bfsdemo.cc ../include/graph.h ../include/bfs.h \
    21         ../include/oldgraph.h makefile
    22         g++ $(CXXFLAGS) -o bfsdemo bfsdemo.cc
    23 
    24 bfsdemo2: bfsdemo2.cc ../include/graph.h ../include/bfs.h \
    25         ../include/oldgraph.h makefile
    26         g++ $(CXXFLAGS) -o bfsdemo2 bfsdemo2.cc
     34.PHONY: all clean dep depend
Note: See TracChangeset for help on using the changeset viewer.