COIN-OR::LEMON - Graph Library

Changeset 17:0b3b26cd1cea in lemon-tutorial for Makefile.in


Ignore:
Timestamp:
11/05/08 18:10:54 (12 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Better build system

  • configure script added
  • demo/*.cc are now compiled (the executables are in demo/build)
  • version number appears in the doc and automatically updates
  • the cross reference to the lemon doc can be relocated (e.g. to a local copy of the doc)
  • some repo reorganization has taken place
  • better .hgignore
File:
1 moved

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r10 r17  
    77        $(EPS_IMAGES:%.eps=gen-images/%.png)
    88
     9DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
     10
    911GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    1012
    11 all: html
     13all: demos html
    1214
    1315$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
    14         -mkdir gen-images
     16        -mkdir -p gen-images
    1517        $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
    1618
    17 html: $(PNG_IMAGES)
    18         -mkdir gen-dox
    19         ./titlegen.py
     19html: Doxyfile-gen $(PNG_IMAGES)
     20        -mkdir -p gen-dox
     21        ./scripts/titlegen.py
    2022        doxygen Doxyfile
     23
     24demos: $(DEMOS)
     25
     26Doxyfile-gen:
     27        sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \
     28            -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \
     29        < Doxyfile.in >Doxyfile
    2130
    2231clean:
     
    2534        -rm -f $(PNG_IMAGES)
    2635        -rm -rf gen-images
     36        -rm -rf $(DEMOS)
    2737
    2838update-external-tags:
     
    3444        rm lemon.tag.tmp
    3545
    36 .PHONY: update-external-tags html
     46
     47$(DEMOS): demo/build/%: demo/%.cc
     48        -mkdir -p demo/build
     49        g++ -o $@ @lemon_cflags@ @lemon_libs@ \
     50        -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \
     51        -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \
     52        -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \
     53        -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \
     54        -Wold-style-cast -Wno-unknown-pragmas \
     55        -ggdb -O0 $<
     56
     57
     58.PHONY: update-external-tags html demos Doxyfile-gen
     59
Note: See TracChangeset for help on using the changeset viewer.