]> Pileus Git - grits/blob - src/Makefile.am
Add primitive rendering types
[grits] / src / Makefile.am
1 SUBDIRS = . plugins
2
3 AM_CFLAGS   = -Wall --std=gnu99
4 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS)
5 AM_LDADD    = $(GLIB_LIBS) $(GTK_LIBS) $(SOUP_LIBS)
6
7 # Library
8 BUILT_SOURCES = gis-marshal.c gis-marshal.h
9 lib_LTLIBRARIES  = libgis.la
10 gis_includedir = $(includedir)/gis
11 gis_include_HEADERS = \
12         gis.h         \
13         gis-world.h   \
14         gis-view.h    \
15         gis-prefs.h   \
16         gis-opengl.h  \
17         gis-plugin.h  \
18         gis-data.h    \
19         gis-tile.h    \
20         gis-wms.h     \
21         gpqueue.h     \
22         roam.h
23 libgis_la_SOURCES = \
24         gis-world.c   gis-world.h   \
25         gis-view.c    gis-view.h    \
26         gis-prefs.c   gis-prefs.h   \
27         gis-opengl.c  gis-opengl.h  \
28         gis-plugin.c  gis-plugin.h  \
29         gis-marshal.c gis-marshal.h \
30         gis-data.c    gis-data.h    \
31         gis-tile.c    gis-tile.h    \
32         gis-wms.c     gis-wms.h     \
33         gis-prims.c   gis-prims.h   \
34         roam.c        roam.h        \
35         gpqueue.c     gpqueue.h
36 libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \
37         -DPKGDATADIR="\"$(datadir)/gis\"" -DPLUGINSDIR="\"$(libdir)/gis\""
38 libgis_la_LIBADD = $(AM_LDADD)
39 libgis_la_LDFLAGS = -no-undefined
40
41 pkgconfigdir = $(libdir)/pkgconfig
42 pkgconfig_DATA = libgis.pc
43
44 # Test programs
45 bin_PROGRAMS = gis_test wms_test
46
47 gis_test_SOURCES  = gis_test.c gis.h
48 gis_test_LDADD    = $(AM_LDADD) libgis.la
49
50 wms_test_SOURCES  = wms_test.c gis-world.c gis-world.h gis-wms.c gis-wms.h gis-tile.c gis-tile.h
51 wms_test_LDADD    = $(AM_LDADD)
52
53 MAINTAINERCLEANFILES = Makefile.in
54
55 .list.c:
56         glib-genmarshal --prefix=gis_cclosure_marshal --body   $< > $@
57 .list.h:
58         glib-genmarshal --prefix=gis_cclosure_marshal --header $< > $@
59
60 test: all .libs/gis
61         ./gis_test
62
63 gdb: all .libs/gis
64         gdb ./gis_test
65
66 ddd: all .libs/gis
67         ddd ./gis_test
68
69 .libs/gis: plugins/.libs
70         ln -sf ../plugins/.libs .libs/gis
71
72 memcheck: all
73         G_SLICE=always-malloc                   \
74         G_DEBUG=gc-friendly,resident-modules    \
75         valgrind --track-origins=yes            \
76                  --leak-check=full              \
77                  --leak-resolution=high         \
78                  --num-callers=50               \
79                  --suppressions=gtk.suppression \
80                  ./gis_test                     \
81         2> valgrind.out