]> Pileus Git - aweather/blob - src/Makefile.am
Rename aweather-colormap.[ch] to radar-info.[ch]
[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
27 bin_PROGRAMS         += aweather-dbg
28 aweather_dbg_SOURCES  = $(aweather_SOURCES)
29 aweather_dbg_CPPFLAGS = $(aweather_CPPFLAGS)
30 aweather_dbg_LDADD    = $(aweather_LDADD)
31 endif
32
33 .rc.o: ../data/aweather.ico
34         $(RC) -o $@ $<
35
36 CLEANFILES = gmon.out valgrind.out
37 MAINTAINERCLEANFILES = Makefile.in
38
39 test: all
40         .libs/aweather -o -d 7 -s KLSX -t '2010-12-31 17:56Z'
41 #.libs/aweather -o -d 7 -s KDGX -t '2010-12-31 23:10Z'
42 #.libs/aweather -o -d 7 -s KDGX -t '1999-05-03 23:51Z'
43
44 gdb: all
45         gdb .libs/aweather
46
47 ddd: all
48         ddd .libs/aweather