]> Pileus Git - grits/blob - src/Makefile.am
fad1033ba25d59d4110d92276b9cfb4eebdcf179
[grits] / src / Makefile.am
1 AM_LDFLAGS    = $(RSL_LIBS) $(GTK_LIBS)
2 AM_CFLAGS     = -Wall -Werror -Wno-unused --std=gnu99 
3 bin_PROGRAMS  = aweather wsr88ddec
4
5 BUILT_SOURCES = marshal.c marshal.h
6
7 aweather_SOURCES  = main.c \
8         marshal.c        marshal.h        \
9         aweather-gui.c   aweather-gui.h   \
10         aweather-view.c  aweather-view.h  \
11         data.c           data.h           \
12         location.c       location.h       \
13         plugin-radar.c   plugin-radar.h   \
14         plugin-radar-colormap.c           \
15         plugin-ridge.c   plugin-ridge.h   \
16         plugin-example.c plugin-example.h
17 aweather_CPPFLAGS = $(RSL_CFLAGS) $(GTK_CFLAGS) -DDATADIR="\"$(datadir)\"" 
18
19 wsr88ddec         = wsr88ddec.c
20 wsr88ddec_LDADD   = -lbz2
21
22 .list.c:
23         glib-genmarshal --prefix=aweather_cclosure_marshal --body   $< > $@
24 .list.h:
25         glib-genmarshal --prefix=aweather_cclosure_marshal --header $< > $@
26
27 test: all
28         ./aweather
29
30 gdb: all
31         gdb ./aweather
32
33 ddd: all
34         ddd ./aweather
35
36 memcheck:
37         G_SLICE=always-malloc                   \
38         G_DEBUG=gc-friendly,resident-modules    \
39         valgrind --leak-check=full              \
40                  --leak-resolution=high         \
41                  --num-callers=50               \
42                  --suppressions=gtk.suppression \
43                  ./aweather                     \
44         2> memcheck.log