]> Pileus Git - grits/blob - src/Makefile.am
1c006359c643e3c83564f39a633c4f77d3160912
[grits] / src / Makefile.am
1 AM_CFLAGS     = -Wall -Werror -Wno-unused --std=gnu99 
2 bin_PROGRAMS  = aweather wsr88ddec
3
4 BUILT_SOURCES = marshal.c marshal.h
5
6 aweather_SOURCES  = main.c \
7         marshal.c         marshal.h         \
8         aweather-gui.c    aweather-gui.h    \
9         aweather-plugin.c aweather-plugin.h \
10         gis-opengl.c      gis-opengl.h      \
11         gis-view.c        gis-view.h        \
12         gis-world.c       gis-world.h       \
13         data.c            data.h            \
14         location.c        location.h        \
15         marching.c        marching.h        \
16         plugin-radar.c    plugin-radar.h    \
17         plugin-radar-colormap.c             \
18         plugin-ridge.c    plugin-ridge.h    \
19         plugin-example.c  plugin-example.h
20 aweather_CPPFLAGS = -DDATADIR="\"$(datadir)\"" \
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