]> Pileus Git - aweather/blob - src/Makefile.am
OpenGL debugging
[aweather] / src / Makefile.am
1 SUBDIRS = plugins
2
3 AM_CFLAGS   = -Wall --std=gnu99 $(GRITS_CFLAGS)
4 AM_LDFLAGS  = -Wl,--export-dynamic \
5               -Wl,--as-needed -Wl,--no-undefined
6
7 bin_PROGRAMS = aweather wsr88ddec gears
8 aweather_SOURCES  = main.c \
9         aweather-gui.c      aweather-gui.h \
10         aweather-location.c aweather-location.h
11 aweather_CPPFLAGS = \
12         -DHTMLDIR="\"$(dots)$(htmldir)\"" \
13         -DICONDIR="\"$(dots)$(datadir)/icons\"" \
14         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
15         -DPLUGINSDIR="\"$(dots)$(pkglibdir)\""
16 aweather_LDADD    = $(GRITS_LIBS)
17
18 wsr88ddec         = wsr88ddec.c
19 wsr88ddec_LDADD   = $(GLIB_LIBS) -lbz2
20
21 gears             = gears.c
22 gears_LDADD       = $(GRITS_LIBS)
23
24 if WIN32
25 dots = ..
26
27 wsr88ddec_LDFLAGS     = -mwindows
28
29 aweather_SOURCES     += resource.rc
30 aweather_LDFLAGS      = -mwindows
31 aweather_CPPFLAGS    += -I$(top_srcdir)/lib
32
33 bin_PROGRAMS         += aweather-dbg
34 aweather_dbg_SOURCES  = $(aweather_SOURCES)
35 aweather_dbg_CPPFLAGS = $(aweather_CPPFLAGS)
36 aweather_dbg_LDADD    = $(aweather_LDADD)
37 endif
38
39 .rc.o: ../data/icons/48x48/aweather.ico
40         $(RC) -o $@ $<
41
42 CLEANFILES = gmon.out valgrind.out
43 MAINTAINERCLEANFILES = Makefile.in
44
45 test: all
46         .libs/aweather -o -d 7
47 #.libs/aweather -o -d 7 -s KOUN -t '2011-02-01 10:01Z'
48 #.libs/aweather -o -d 7 -s KLSX -t '2010-12-31 17:56Z'
49 #.libs/aweather -o -d 7 -s KDGX -t '2010-12-31 23:10Z'
50 #.libs/aweather -o -d 7 -s KDGX -t '1999-05-03 23:51Z'
51
52 gdb: all
53         gdb .libs/aweather
54
55 ddd: all
56         ddd .libs/aweather
57
58 memcheck: all
59         G_SLICE=always-malloc                   \
60         G_DEBUG=gc-friendly,resident-modules    \
61         valgrind --track-origins=yes            \
62                  --leak-check=full              \
63                  --leak-resolution=high         \
64                  --num-callers=50               \
65                  --suppressions=gtk.suppression \
66                  --suppressions=/usr/lib/valgrind/default.supp \
67                  .libs/aweather                 \
68         2> valgrind.out