]> Pileus Git - aweather/blob - src/Makefile.am
Update compat includes
[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 EXTRA_DIST  = compat.h
11
12 bin_PROGRAMS = aweather wsr88ddec
13 aweather_SOURCES  = main.c \
14         aweather-gui.c      aweather-gui.h \
15         aweather-location.c aweather-location.h
16 aweather_CPPFLAGS = \
17         -DHTMLDIR="\"$(DOTS)$(htmldir)\"" \
18         -DICONDIR="\"$(DOTS)$(datadir)/icons\"" \
19         -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \
20         -DPLUGINSDIR="\"$(DOTS)$(pkglibdir)\""
21 aweather_LDADD    = $(GRITS_LIBS)
22
23 wsr88ddec         = wsr88ddec.c
24 wsr88ddec_LDADD   = $(GLIB_LIBS) -lbz2
25
26 if SYS_WIN
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 if SYS_MAC
40 aweather_CPPFLAGS    += $(MAC_CFLAGS)
41 aweather_LDADD       += $(MAC_LIBS)
42 endif
43
44 .rc.o: ../data/icons/48x48/aweather.ico
45         $(RC) -o $@ $<
46
47 CLEANFILES = gmon.out valgrind.out
48 MAINTAINERCLEANFILES = Makefile.in
49
50 test: all
51         .libs/aweather -o -d 5
52 #.libs/aweather -o -d 7 -s KOUN -t '2011-02-01 10:01Z'
53 #.libs/aweather -o -d 7 -s KLSX -t '2010-12-31 17:56Z'
54 #.libs/aweather -o -d 7 -s KDGX -t '2010-12-31 23:10Z'
55 #.libs/aweather -o -d 7 -s KDGX -t '1999-05-03 23:51Z'
56
57 gdb: all
58         gdb .libs/aweather
59
60 ddd: all
61         ddd .libs/aweather
62
63 memcheck: all
64         G_SLICE=always-malloc                   \
65         G_DEBUG=gc-friendly,resident-modules    \
66         valgrind --track-origins=yes            \
67                  --leak-check=full              \
68                  --leak-resolution=high         \
69                  --num-callers=50               \
70                  --suppressions=gtk.suppression \
71                  --suppressions=/usr/lib/valgrind/default.supp \
72                  .libs/aweather                 \
73         2> valgrind.out