X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=01465d4a8258279f2acc8510981fb6c36cb0b023;hb=84c4eeaaf6a795b5b4385f2c63031acaefd70730;hp=7605c8c084af7d72841f1a72497071fc9a201b72;hpb=33ef5e398a91e8eca3c55fdcf78713efeb7fa2a0;p=grits diff --git a/src/Makefile.am b/src/Makefile.am index 7605c8c..01465d4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,38 @@ -bin_PROGRAMS = aweather +SUBDIRS = gis plugins -aweather_SOURCES = aweather.c -aweather_CPPFLAGS = @PACKAGE_CFLAGS@ -aweather_LDADD = @PACKAGE_LIBS@ +AM_CFLAGS = -Wall -Werror -Wno-unused --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