X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=96c7a6c3249a0eab2ce2a1852cf8669641d4e05e;hb=0166a74c965b1e8466c90d8dc8dc49731506543e;hp=cca3efd5515bd094c6034880c356b4c4bc49a2af;hpb=b2a5589ec7bc4350a62d374deab69e86465f0432;p=grits diff --git a/src/Makefile.am b/src/Makefile.am index cca3efd..96c7a6c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,38 @@ -bin_PROGRAMS = aweather +SUBDIRS = gis plugins -aweather_SOURCES = aweather.c aweather.h cube.c cube.h -aweather_CPPFLAGS = @PACKAGE_CFLAGS@ -aweather_LDADD = @PACKAGE_LIBS@ +AM_CFLAGS = -Wall --std=gnu99 +AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) +AM_LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(SOUP_LIBS) + +bin_PROGRAMS = aweather wsr88ddec +aweather_SOURCES = main.c \ + aweather-gui.c aweather-gui.h \ + aweather-location.c aweather-location.h +aweather_CPPFLAGS = $(AM_CPPFLAGS) -DDATADIR="\"$(datadir)\"" +aweather_LDADD = $(AM_LDADD) gis/libgis.la + +wsr88ddec = wsr88ddec.c +wsr88ddec_LDADD = -lbz2 + +CLEANFILES = gmon.out valgrind.out +MAINTAINERCLEANFILES = Makefile.in + +test: all + LD_LIBRARY_PATH=gis/.libs .libs/aweather -o -d 7 -s KVNX + +gdb: all + LD_LIBRARY_PATH=gis/.libs gdb .libs/aweather + +ddd: all + LD_LIBRARY_PATH=gis/.libs ddd .libs/aweather + +memcheck: all + LD_LIBRARY_PATH=gis/.libs \ + G_SLICE=always-malloc \ + G_DEBUG=gc-friendly,resident-modules \ + valgrind --leak-check=full \ + --leak-resolution=high \ + --num-callers=100 \ + --suppressions=gtk.suppression \ + .libs/aweather \ + 2> valgrind.out