COIN-OR::LEMON - Graph Library

Changeset 17:0b3b26cd1cea in lemon-tutorial


Ignore:
Timestamp:
11/05/08 18:10:54 (11 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
Files:
2 added
1 edited
3 moved

Legend:

Unmodified
Added
Removed
  • .hgignore

    r10 r17  
    1010*.bak
    1111*.tag
     12*.tmp
    1213.dirstamp
     14Doxyfile
     15Makefile
    1316
    1417syntax: regexp
    1518(.*/)?\#[^/]*\#$
     19(.*/)?\.\#[^/]*$
    1620^html/.*
    1721^gen-images/.*
    1822^gen-dox/.*
     23^demo/build/.*
  • Doxyfile.in

    r12 r17  
    66DOXYFILE_ENCODING      = UTF-8
    77PROJECT_NAME           = "LEMON Tutorial"
    8 PROJECT_NUMBER         = 0.1
     8PROJECT_NUMBER         = @version@
    99OUTPUT_DIRECTORY       =
    1010CREATE_SUBDIRS         = NO
     
    220220#---------------------------------------------------------------------------
    221221TAGFILES               = "./libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3" \
    222                          "./lemon.tag = http://lemon.cs.elte.hu/pub/doc/1.0"
     222                         "./lemon.tag = @lemon_doc_prefix@"
    223223GENERATE_TAGFILE       =
    224224ALLEXTERNALS           = NO
  • 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.