AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
-AM_LDFLAGS = -module -avoid-version -no-undefined
+AM_LDFLAGS = -shared -module -avoid-version -Wl,--as-needed
LIBS = $(GRITS_LIBS)
pluginsdir = $(pkglibdir)
radar-info.c radar-info.h \
../aweather-location.c \
../aweather-location.h
+radar_la_CPPFLAGS = \
+ -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
+ -I$(top_srcdir)/src -I$(top_srcdir)/lib
radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) \
$(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
endif
+if WIN32
+AM_LDFLAGS += -no-undefined
+dots = ..
+endif
+
test:
( cd ../; make test )