COIN-OR::LEMON - Graph Library

source: lemon-tutorial/Makefile.in @ 38:236e7061b70d

Last change on this file since 38:236e7061b70d was 35:f7a4e8024952, checked in by Akos Ladanyi <ladanyi@…>, 15 years ago

Put all version numbers in config.sh for easier changing

File size: 1.6 KB
Line 
1LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@
2
3EPS_IMAGES18 =
4
5EPS_IMAGES = \
6        $(EPS_IMAGES18)
7
8PNG_IMAGES = \
9        $(EPS_IMAGES:%.eps=gen-images/%.png)
10
11DEMOS = $(patsubst demo/%.cc,demo/build/%,$(wildcard demo/*.cc))
12
13GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
14
15all: demos html
16
17$(EPS_IMAGES18:%.eps=gen-images/%.png): gen-images/%.png: images/%.eps
18        -mkdir -p gen-images
19        $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<
20
21html: Doxyfile-gen $(PNG_IMAGES)
22        -mkdir -p gen-dox
23        ./scripts/titlegen.py
24        doxygen Doxyfile
25
26demos: $(DEMOS)
27
28Doxyfile-gen:
29        sed -e 's/@version@/'`./scripts/chg-len.py`'/g' \
30            -e 's/@lemon_doc_prefix@/@make_lemon_doc_prefix@/g' \
31        < Doxyfile.in >Doxyfile
32
33clean:
34        -rm -rf html
35        -rm -f doxygen.log
36        -rm -f $(PNG_IMAGES)
37        -rm -rf gen-images
38        -rm -rf $(DEMOS)
39
40update-external-tags:
41        wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-$(LIBSTDCXX_VERSION)/libstdc++.tag && \
42        mv libstdc++.tag.tmp libstdc++.tag || \
43        rm libstdc++.tag.tmp
44        wget -O lemon.tag.tmp @make_lemon_doc_prefix@/lemon.tag && \
45        mv lemon.tag.tmp lemon.tag || \
46        rm lemon.tag.tmp
47
48
49$(DEMOS): demo/build/%: demo/%.cc
50        -mkdir -p demo/build
51        g++ -o $@ @lemon_cflags@ @lemon_libs@ \
52        -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy \
53        -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings \
54        -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align \
55        -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing \
56        -Wold-style-cast -Wno-unknown-pragmas \
57        -ggdb -O0 $<
58
59
60.PHONY: update-external-tags html demos Doxyfile-gen
61
Note: See TracBrowser for help on using the repository browser.