]> Pileus Git - aweather/blob - src/Makefile.am
7203aa093473542658c0580caed79f3aed9f5444
[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
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         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
14         -DPLUGINSDIR="\"$(dots)$(pkglibdir)\""
15 aweather_LDADD    = $(GRITS_LIBS)
16
17 wsr88ddec         = wsr88ddec.c
18 wsr88ddec_LDADD   = $(GLIB_LIBS) -lbz2
19
20 if WIN32
21 dots = ..
22
23 wsr88ddec_LDFLAGS     = -mwindows
24
25 aweather_SOURCES     += resource.rc
26 aweather_LDFLAGS      = -mwindows
27 aweather_CPPFLAGS    += -I$(top_srcdir)/lib
28 aweather_LDADD       += $(top_srcdir)/lib/libgnu.la
29
30 bin_PROGRAMS         += aweather-dbg
31 aweather_dbg_SOURCES  = $(aweather_SOURCES)
32 aweather_dbg_CPPFLAGS = $(aweather_CPPFLAGS)
33 aweather_dbg_LDADD    = $(aweather_LDADD)
34 endif
35
36 .rc.o: ../data/aweather.ico
37         $(RC) -o $@ $<
38
39 CLEANFILES = gmon.out valgrind.out
40 MAINTAINERCLEANFILES = Makefile.in
41
42 test: all
43         .libs/aweather -o -d 7 -s KOUN -t '2011-02-01 10:01Z'
44 #.libs/aweather -o -d 7 -s KLSX -t '2010-12-31 17:56Z'
45 #.libs/aweather -o -d 7 -s KDGX -t '2010-12-31 23:10Z'
46 #.libs/aweather -o -d 7 -s KDGX -t '1999-05-03 23:51Z'
47
48 gdb: all
49         gdb .libs/aweather
50
51 ddd: all
52         ddd .libs/aweather