]> Pileus Git - grits/blob - src/Makefile.am
191dfab6a598328fe8046c16435456f7b6232e1f
[grits] / src / Makefile.am
1 SUBDIRS = plugins
2
3 AM_CFLAGS     = -Wall -Werror -Wno-unused --std=gnu99 
4 bin_PROGRAMS  = aweather wsr88ddec
5
6 BUILT_SOURCES = marshal.c marshal.h
7
8 aweather_SOURCES  = main.c \
9         marshal.c         marshal.h         \
10         aweather-gui.c    aweather-gui.h    \
11         aweather-plugin.c aweather-plugin.h \
12         gis-opengl.c      gis-opengl.h      \
13         gis-view.c        gis-view.h        \
14         gis-world.c       gis-world.h       \
15         data.c            data.h            \
16         location.c        location.h        \
17         marching.c        marching.h
18 aweather_CPPFLAGS = \
19         -DDATADIR="\"$(datadir)\"" \
20         -DPLUGINDIR="\"$(libdir)/aweather\"" \
21         $(RSL_CFLAGS) $(SOUP_CFLAGS) $(GLIB_CFLAGS) $(GTK_CFLAGS)
22 aweather_LDADD    = $(RSL_LIBS) $(SOUP_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
23
24 wsr88ddec         = wsr88ddec.c
25 wsr88ddec_LDADD   = -lbz2
26
27 CLEANFILES = gmon.out valgrind.out
28 MAINTAINERCLEANFILES = Makefile.in
29
30 .list.c:
31         glib-genmarshal --prefix=aweather_cclosure_marshal --body   $< > $@
32 .list.h:
33         glib-genmarshal --prefix=aweather_cclosure_marshal --header $< > $@
34
35 test: all
36         ./aweather -o -d 7 -s KVNX
37
38 gdb: all
39         gdb ./aweather
40
41 ddd: all
42         ddd ./aweather
43
44 memcheck:
45         G_SLICE=always-malloc                   \
46         G_DEBUG=gc-friendly,resident-modules    \
47         valgrind --leak-check=full              \
48                  --leak-resolution=high         \
49                  --num-callers=100              \
50                  --suppressions=gtk.suppression \
51                  ./aweather                     \
52         2> valgrind.out