X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2FMakefile.am;h=17c04a603b300a3fc615e724ce83e2646802d71b;hp=8611e504e5a6fb3a983abe66d2d5894fca81e617;hb=e7127ea74717754c48779467aca2f9a1596a99f0;hpb=472b8362101f7d2712a32a30af3c4fd7b5637aa4 diff --git a/src/Makefile.am b/src/Makefile.am index 8611e50..17c04a6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,39 +1,94 @@ -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 +SUBDIRS = data objects . plugins -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) +AM_CFLAGS = -Wall --std=gnu99 -I$(top_srcdir)/src +AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) +AM_LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(SOUP_LIBS) +AM_LDFLAGS = --as-needed -no-undefined -wsr88ddec = wsr88ddec.c -wsr88ddec_LDADD = -lbz2 +BUILT_SOURCES = gis-marshal.c gis-marshal.h -# LD_LIBRARY_PATH=/usr/local/trmm/GVBOX/lib/ -test: all - ./aweather +# Headers +gis_includedir = $(includedir)/gis +gis_include_HEADERS = \ + gis.h \ + gis-viewer.h \ + gis-prefs.h \ + gis-opengl.h \ + gis-plugin.h \ + gis-util.h \ + gpqueue.h \ + roam.h -gdb: all - gdb ./aweather +# Pkg-config +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libgis.pc -ddd: all - ddd ./aweather +# Library +lib_LTLIBRARIES = libgis.la -memcheck: +libgis_la_SOURCES = gis.h \ + gis-viewer.c gis-viewer.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-util.c gis-util.h \ + roam.c roam.h \ + gpqueue.c gpqueue.h +libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \ + -DPKGDATADIR="\"$(datadir)/gis\"" \ + -DPLUGINSDIR="\"$(libdir)/gis\"" +libgis_la_LIBADD = $(AM_LDADD) \ + objects/libgis-objects.la \ + data/libgis-data.la + +# Demo program +if NOTWIN32 +AM_LDFLAGS += -static +endif + +bin_PROGRAMS = gis-demo + +gis_demo_SOURCES = gis-demo.c +gis_demo_LDADD = $(AM_LDADD) libgis.la + +# Test programs +noinst_PROGRAMS = gis-test tile-test + +gis_test_SOURCES = gis-test.c +gis_test_LDADD = $(AM_LDADD) libgis.la + +tile_test_SOURCES = tile-test.c +tile_test_LDADD = $(AM_LDADD) libgis.la + + +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 --leak-check=full \ + valgrind --track-origins=yes \ + --leak-check=full \ --leak-resolution=high \ --num-callers=50 \ --suppressions=gtk.suppression \ - ./aweather \ - 2> memcheck.log + ./gis-test \ + 2> valgrind.out