+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libgis.pc
+
+# Test programs
+bin_PROGRAMS = gis_test wms_test
+
+gis_test_SOURCES = gis_test.c gis.h
+gis_test_LDFLAGS = -static
+gis_test_LDADD = $(AM_LDADD) libgis.la
+
+wms_test_SOURCES = wms_test.c gis-world.c gis-world.h gis-wms.c gis-wms.h gis-tile.c gis-tile.h
+wms_test_LDADD = $(AM_LDADD)
+
+MAINTAINERCLEANFILES = Makefile.in
+
+.list.c:
+ glib-genmarshal --prefix=gis_cclosure_marshal --body $< > $@
+.list.h:
+ glib-genmarshal --prefix=gis_cclosure_marshal --header $< > $@
+
+test: all .libs/gis
+ ./gis_test
+
+gdb: all .libs/gis
+ gdb ./gis_test
+
+ddd: all .libs/gis
+ ddd ./gis_test
+
+.libs/gis: plugins/.libs
+ ln -sf ../plugins/.libs .libs/gis
+
+memcheck: all
+ G_SLICE=always-malloc \
+ G_DEBUG=gc-friendly,resident-modules \
+ valgrind --track-origins=yes \
+ --leak-check=full \
+ --leak-resolution=high \
+ --num-callers=50 \
+ --suppressions=gtk.suppression \
+ ./gis_test \
+ 2> valgrind.out