COIN-OR::LEMON - Graph Library

source: lemon-tutorial/Makefile.in @ 49:c8c5a2a4ec71

Last change on this file since 49:c8c5a2a4ec71 was 41:73fdafd843d9, checked in by Peter Kovacs <kpeter@…>, 15 years ago

Add two more images for adaptors

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