X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=502bb260fa7471b5a389bf8a04f28a9c32f85d4b;hp=64f21ad6a6bddcf81b70924cdf942e6b3dbf9518;hb=e14ed01dd0d4966d1a906486dbd01d577a27634f;hpb=0bc51abde6ed475be30e3ea1619e58eb0279fbf3 diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 64f21ad..502bb26 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,6 +1,7 @@ -AM_CFLAGS = -Wall --std=gnu99 $(GIS_CFLAGS) +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) @@ -9,16 +10,23 @@ plugins_LTLIBRARIES = if HAVE_RSL plugins_LTLIBRARIES += radar.la radar_la_SOURCES = \ - radar.c radar.h \ - level2.c level2.h \ - ../aweather-colormap.c \ - ../aweather-colormap.h \ + radar.c radar.h \ + level2.c level2.h \ + radar-info.c radar-info.h \ ../aweather-location.c \ ../aweather-location.h -radar_la_LIBADD = $(RSL_LIBS) $(GIS_LIBS) \ +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 )