1
# **********************************************************************
4
# * PostGIS - Spatial Types for PostgreSQL
5
# * http://postgis.refractions.net
6
# * Copyright 2008 Kevin Neufeld
8
# * This is free software; you can redistribute and/or modify it under
9
# * the terms of the GNU General Public Licence. See the COPYING file.
11
# **********************************************************************
14
CFLAGS=@CFLAGS@ @WARNFLAGS@
16
CUNIT_LDFLAGS=@CUNIT_LDFLAGS@
17
CUNIT_CPPFLAGS=@CUNIT_CPPFLAGS@ -I../../../liblwgeom
20
../images/st_buffer01.png \
21
../images/st_buffer02.png \
22
../images/st_centroid01.png \
23
../images/st_centroid02.png \
24
../images/st_centroid03.png \
25
../images/st_centroid04.png \
26
../images/st_contains01.png \
27
../images/st_contains02.png \
28
../images/st_contains03.png \
29
../images/st_contains04.png \
30
../images/st_contains05.png \
31
../images/st_contains06.png \
32
../images/st_crosses01.png \
33
../images/st_crosses02.png \
34
../images/st_crosses03.png \
35
../images/st_crosses04.png \
36
../images/st_issimple01.png \
37
../images/st_issimple02.png \
38
../images/st_issimple03.png \
39
../images/st_issimple04.png \
40
../images/st_issimple05.png \
41
../images/st_issimple06.png \
42
../images/st_issimple07.png \
43
../images/st_isvalid01.png \
44
../images/st_isvalid02.png \
45
../images/st_isvalid03.png \
46
../images/st_isvalid04.png \
47
../images/st_isvalid05.png \
48
../images/st_isvalid06.png \
49
../images/st_isvalid07.png \
50
../images/st_isvalid08.png \
51
../images/st_touches01.png \
52
../images/st_touches02.png \
53
../images/st_touches03.png \
54
../images/st_touches04.png \
55
../images/st_touches05.png \
56
../images/st_touches06.png \
57
../images/st_within01.png
59
OBJS=styles.o generator.o
67
# Command to build each of the .o files
69
$(CC) $(CFLAGS) $(CUNIT_CPPFLAGS) -c -o $@ $<
71
# Command to build each of the .wkt files
72
$(IMAGES): ../images/%.png: %.wkt generator styles.conf
75
# Build the main executable
76
generator: ../../../liblwgeom/liblwgeom.a $(OBJS)
77
$(CC) -o $@ $(OBJS) ../../../liblwgeom/liblwgeom.a -lm $(CUNIT_LDFLAGS)