SUBDIRS = plugins
AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS)
-AM_LDFLAGS = -Wl,--export-dynamic
+AM_LDFLAGS = -Wl,--export-dynamic \
+ -Wl,--as-needed -Wl,--no-undefined
bin_PROGRAMS = aweather wsr88ddec
aweather_SOURCES = main.c \
aweather-location.c aweather-location.h
aweather_CPPFLAGS = \
-DHTMLDIR="\"$(dots)$(htmldir)\"" \
+ -DICONDIR="\"$(dots)$(datadir)/icons\"" \
-DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
-DPLUGINSDIR="\"$(dots)$(pkglibdir)\""
aweather_LDADD = $(GRITS_LIBS)
aweather_SOURCES += resource.rc
aweather_LDFLAGS = -mwindows
+aweather_CPPFLAGS += -I$(top_srcdir)/lib
+aweather_LDADD += $(top_srcdir)/lib/libgnu.la
bin_PROGRAMS += aweather-dbg
aweather_dbg_SOURCES = $(aweather_SOURCES)