-bin_PROGRAMS = aweather
+SUBDIRS = plugins
-aweather_SOURCES = aweather.c
-aweather_CPPFLAGS = @PACKAGE_CFLAGS@
-aweather_LDADD = @PACKAGE_LIBS@
+AM_CFLAGS = -Wall --std=gnu99
+AM_CPPFLAGS = $(GIS_CFLAGS)
+LIBS = $(GIS_LIBS)
+
+bin_PROGRAMS = aweather wsr88ddec
+aweather_SOURCES = main.c \
+ aweather-gui.c aweather-gui.h \
+ aweather-location.c aweather-location.h
+aweather_CPPFLAGS = $(AM_CPPFLAGS) \
+ -DPKGDATADIR="\"$(pkgdatadir)\"" -DPLUGINSDIR="\"$(pkglibdir)\""
+
+wsr88ddec = wsr88ddec.c
+wsr88ddec_LDADD = -lbz2
+
+CLEANFILES = gmon.out valgrind.out
+MAINTAINERCLEANFILES = Makefile.in
+
+test: all
+ .libs/aweather -o -d 7
+
+gdb: all
+ gdb .libs/aweather
+
+ddd: all
+ ddd .libs/aweather