]> Pileus Git - grits/blob - src/Makefile.am
Replacing GFile/GIO with libsoup
[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-view.c   aweather-view.h   \
10         aweather-plugin.c aweather-plugin.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 = -DDATADIR="\"$(datadir)\"" \
18         $(RSL_CFLAGS) $(SOUP_CFLAGS) $(GLIB_CFLAGS) $(GTK_CFLAGS)
19 aweather_LDADD    = $(RSL_LIBS) $(SOUP_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
20
21 wsr88ddec         = wsr88ddec.c
22 wsr88ddec_LDADD   = -lbz2
23
24 CLEANFILES = gmon.out valgrind.out
25 MAINTAINERCLEANFILES = Makefile.in
26
27 .list.c:
28         glib-genmarshal --prefix=aweather_cclosure_marshal --body   $< > $@
29 .list.h:
30         glib-genmarshal --prefix=aweather_cclosure_marshal --header $< > $@
31
32 test: all
33         ./aweather -d 7
34
35 gdb: all
36         gdb ./aweather
37
38 ddd: all
39         ddd ./aweather
40
41 memcheck:
42         G_SLICE=always-malloc                   \
43         G_DEBUG=gc-friendly,resident-modules    \
44         valgrind --leak-check=full              \
45                  --leak-resolution=high         \
46                  --num-callers=100              \
47                  --suppressions=gtk.suppression \
48                  ./aweather                     \
49         2> valgrind.out