]> Pileus Git - aweather/blob - src/Makefile.am
Misc win32 fixes
[aweather] / src / Makefile.am
1 SUBDIRS = plugins
2
3 AM_CFLAGS   = -Wall --std=gnu99 $(GRITS_CFLAGS)
4 AM_LDFLAGS  = -Wl,--export-dynamic
5
6 bin_PROGRAMS = aweather wsr88ddec
7 aweather_SOURCES  = main.c \
8         aweather-gui.c      aweather-gui.h \
9         aweather-location.c aweather-location.h
10 aweather_CPPFLAGS = \
11         -DHTMLDIR="\"$(dots)$(htmldir)\"" \
12         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
13         -DPLUGINSDIR="\"$(dots)$(pkglibdir)\""
14 aweather_LDADD    = $(GRITS_LIBS)
15
16 wsr88ddec         = wsr88ddec.c
17 wsr88ddec_LDADD   = $(GLIB_LIBS) -lbz2
18
19 if WIN32
20 dots = ..
21
22 wsr88ddec_LDFLAGS     = -mwindows
23
24 aweather_SOURCES     += resource.rc
25 aweather_LDFLAGS      = -mwindows
26 aweather_CPPFLAGS    += -I$(top_srcdir)/lib
27 aweather_LDADD       += $(top_srcdir)/lib/libgnu.la
28
29 bin_PROGRAMS         += aweather-dbg
30 aweather_dbg_SOURCES  = $(aweather_SOURCES)
31 aweather_dbg_CPPFLAGS = $(aweather_CPPFLAGS)
32 aweather_dbg_LDADD    = $(aweather_LDADD)
33 endif
34
35 .rc.o: ../data/aweather.ico
36         $(RC) -o $@ $<
37
38 CLEANFILES = gmon.out valgrind.out
39 MAINTAINERCLEANFILES = Makefile.in
40
41 test: all
42         .libs/aweather -o -d 7 -s KOUN -t '2011-02-01 10:01Z'
43 #.libs/aweather -o -d 7 -s KLSX -t '2010-12-31 17:56Z'
44 #.libs/aweather -o -d 7 -s KDGX -t '2010-12-31 23:10Z'
45 #.libs/aweather -o -d 7 -s KDGX -t '1999-05-03 23:51Z'
46
47 gdb: all
48         gdb .libs/aweather
49
50 ddd: all
51         ddd .libs/aweather