]> Pileus Git - aweather/blob - src/gis/Makefile.am
Roam and Wms optimizations
[aweather] / src / gis / Makefile.am
1 AM_CFLAGS   = -Wall --std=gnu99 
2 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS)
3 AM_LDADD    = $(GLIB_LIBS) $(GTK_LIBS) $(SOUP_LIBS)
4
5 # Library
6 BUILT_SOURCES = gis-marshal.c gis-marshal.h
7 lib_LTLIBRARIES  = libgis.la
8 gis_includedir = $(includedir)/gis
9 gis_include_HEADERS = \
10         gis.h         \
11         gis-world.h   \
12         gis-view.h    \
13         gis-prefs.h   \
14         gis-opengl.h  \
15         gis-plugin.h  \
16         gis-data.h    \
17         gpqueue.h     \
18         roam.h        \
19         wms.h
20 libgis_la_SOURCES = \
21         gis-world.c   gis-world.h   \
22         gis-view.c    gis-view.h    \
23         gis-prefs.c   gis-prefs.h   \
24         gis-opengl.c  gis-opengl.h  \
25         gis-plugin.c  gis-plugin.h  \
26         gis-marshal.c gis-marshal.h \
27         gis-data.c    gis-data.h    \
28         roam.c        roam.h        \
29         wms.c         wms.h         \
30         gpqueue.c     gpqueue.h
31 libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \
32         -DDATADIR="\"$(datadir)\"" -DPLUGINDIR="\"$(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_LDADD    = $(AM_LDADD) .libs/libgis.a
43
44 wms_test_SOURCES  = wms_test.c gis-world.c gis-world.h wms.c wms.h
45 wms_test_LDADD    = $(AM_LDADD)
46
47 MAINTAINERCLEANFILES = Makefile.in
48
49 .list.c:
50         glib-genmarshal --prefix=gis_cclosure_marshal --body   $< > $@
51 .list.h:
52         glib-genmarshal --prefix=gis_cclosure_marshal --header $< > $@
53
54 test: all
55         make -C ../plugins all
56         ./gis_test
57
58 gdb: all
59         LD_LIBRARY_PATH=.libs gdb .libs/gis_test
60
61 ddd: all
62         LD_LIBRARY_PATH=.libs ddd .libs/gis_test
63
64 memcheck: all
65         LD_LIBRARY_PATH=.libs                      \
66         G_SLICE=always-malloc                      \
67         G_DEBUG=gc-friendly,resident-modules       \
68         valgrind --track-origins=yes               \
69                  --leak-check=full                 \
70                  --leak-resolution=high            \
71                  --num-callers=100                 \
72                  --suppressions=../gtk.suppression \
73                  .libs/gis_test                    \
74         2> valgrind.out