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