]> Pileus Git - grits/blob - src/Makefile.am
Remove legacy WMS and disable wms_test
[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         gpqueue.h     \
20         roam.h
21 libgis_la_SOURCES = \
22         gis-world.c   gis-world.h   \
23         gis-view.c    gis-view.h    \
24         gis-prefs.c   gis-prefs.h   \
25         gis-opengl.c  gis-opengl.h  \
26         gis-plugin.c  gis-plugin.h  \
27         gis-marshal.c gis-marshal.h \
28         gis-data.c    gis-data.h    \
29         roam.c        roam.h        \
30         gpqueue.c     gpqueue.h
31 libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \
32         -DPKGDATADIR="\"$(datadir)/gis\"" -DPLUGINSDIR="\"$(libdir)/gis\""
33 libgis_la_LIBADD = $(AM_LDADD)
34
35 pkgconfigdir = $(libdir)/pkgconfig
36 pkgconfig_DATA = libgis.pc
37
38 # Test programs
39 bin_PROGRAMS = gis_test # wms_test
40
41 gis_test_SOURCES  = gis_test.c gis.h
42 gis_test_LDFLAGS  = -static
43 gis_test_LDADD    = $(AM_LDADD) libgis.la
44
45 # wms_test_SOURCES  = wms_test.c gis-world.c gis-world.h
46 # wms_test_LDADD    = $(AM_LDADD)
47
48 MAINTAINERCLEANFILES = Makefile.in
49
50 .list.c:
51         glib-genmarshal --prefix=gis_cclosure_marshal --body   $< > $@
52 .list.h:
53         glib-genmarshal --prefix=gis_cclosure_marshal --header $< > $@
54
55 test: all .libs/gis
56         ./gis_test
57
58 gdb: all .libs/gis
59         gdb ./gis_test
60
61 ddd: all .libs/gis
62         ddd ./gis_test
63
64 .libs/gis: plugins/.libs
65         ln -sf ../plugins/.libs .libs/gis
66
67 memcheck: all
68         G_SLICE=always-malloc                   \
69         G_DEBUG=gc-friendly,resident-modules    \
70         valgrind --track-origins=yes            \
71                  --leak-check=full              \
72                  --leak-resolution=high         \
73                  --num-callers=50               \
74                  --suppressions=gtk.suppression \
75                  ./gis_test                     \
76         2> valgrind.out