X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=ff7181c38a544c5ea7d82bc573a88c93a2ff71e2;hb=af186566547db3c233b469c94de0a7005f75daf8;hp=8611e504e5a6fb3a983abe66d2d5894fca81e617;hpb=472b8362101f7d2712a32a30af3c4fd7b5637aa4;p=grits diff --git a/src/Makefile.am b/src/Makefile.am index 8611e50..ff7181c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,39 +1,74 @@ -AM_CPPFLAGS = -DDATADIR="\"$(datadir)\"" $(RSL_CFLAGS) $(GTK_CFLAGS) $(CURL_CFLAGS) -AM_CFLAGS = -Wall -Werror -Wno-unused --std=gnu99 -AM_LDFLAGS = -Wl,--export-dynamic -bin_PROGRAMS = aweather wsr88ddec - -aweather_SOURCES = main.c \ - aweather-gui.c aweather-gui.h \ - aweather-view.c aweather-view.h \ - data.c data.h \ - location.c location.h \ - plugin-radar.c plugin-radar.h \ - plugin-radar-colormap.c \ - plugin-ridge.c plugin-ridge.h \ - plugin-example.c plugin-example.h -aweather_LDADD = $(RSL_LIBS) $(GTK_LIBS) $(CURL_LIBS) - -wsr88ddec = wsr88ddec.c -wsr88ddec_LDADD = -lbz2 - -# LD_LIBRARY_PATH=/usr/local/trmm/GVBOX/lib/ +AM_CFLAGS = -Wall --std=gnu99 +AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) +AM_LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(SOUP_LIBS) + +# Library +BUILT_SOURCES = gis-marshal.c gis-marshal.h +lib_LTLIBRARIES = libgis.la +gis_includedir = $(includedir)/gis +gis_include_HEADERS = \ + gis.h \ + gis-world.h \ + gis-view.h \ + gis-prefs.h \ + gis-opengl.h \ + gis-plugin.h \ + gis-data.h \ + gpqueue.h \ + roam.h \ + wms.h +libgis_la_SOURCES = \ + gis-world.c gis-world.h \ + gis-view.c gis-view.h \ + gis-prefs.c gis-prefs.h \ + gis-opengl.c gis-opengl.h \ + gis-plugin.c gis-plugin.h \ + gis-marshal.c gis-marshal.h \ + gis-data.c gis-data.h \ + roam.c roam.h \ + wms.c wms.h \ + gpqueue.c gpqueue.h +libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \ + -DPKGDATADIR="\"$(datadir)/gis\"" -DPLUGINSDIR="\"$(libdir)/gis\"" +libgis_la_LIBADD = $(AM_LDADD) + +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 wms.c wms.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 - ./aweather + ./gis_test gdb: all - gdb ./aweather + LD_LIBRARY_PATH=.libs gdb .libs/gis_test ddd: all - ddd ./aweather - -memcheck: - G_SLICE=always-malloc \ - G_DEBUG=gc-friendly,resident-modules \ - valgrind --leak-check=full \ - --leak-resolution=high \ - --num-callers=50 \ - --suppressions=gtk.suppression \ - ./aweather \ - 2> memcheck.log + LD_LIBRARY_PATH=.libs ddd .libs/gis_test + +memcheck: all + LD_LIBRARY_PATH=.libs \ + G_SLICE=always-malloc \ + G_DEBUG=gc-friendly,resident-modules \ + valgrind --track-origins=yes \ + --leak-check=full \ + --leak-resolution=high \ + --num-callers=100 \ + --suppressions=../gtk.suppression \ + .libs/gis_test \ + 2> valgrind.out