X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=ae72af181aa334c4fb3c4cd4cd16ddcba0ea1c1d;hb=9e734911e96ae83b0f41afa5073d5313bc197d96;hp=29ae442247d481acc1f5c5b6323606a0358a4232;hpb=84c9924553482ded8566105d4559088a6ab543ac;p=aweather diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 29ae442..ae72af1 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,11 +1,35 @@ 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 LIBS = $(GRITS_LIBS) +if SYS_WIN +AM_LDFLAGS += -no-undefined +endif +if !SYS_MAC +AM_LDFLAGS += -Wl,--as-needed +endif + pluginsdir = $(pkglibdir) -plugins_LTLIBRARIES = +plugins_LTLIBRARIES = alert.la + +alert_la_SOURCES = \ + alert.c alert.h \ + alert-info.c alert-info.h +alert_la_CPPFLAGS = \ + -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" +alert_la_LIBADD = $(GRITS_LIBS) + +if HAVE_GPSD +plugins_LTLIBRARIES += gps.la +gps_la_SOURCES = \ + gps-plugin.c gps-plugin.h +gps_la_CPPFLAGS = \ + -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \ + -I$(top_srcdir)/src +gps_la_LIBADD = $(GPSD_LIBS) $(GRITS_LIBS) +endif if HAVE_RSL plugins_LTLIBRARIES += radar.la @@ -15,8 +39,10 @@ radar_la_SOURCES = \ radar-info.c radar-info.h \ ../aweather-location.c \ ../aweather-location.h -radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) \ - $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS)) +radar_la_CPPFLAGS = \ + -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \ + -I$(top_srcdir)/src +radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) endif test: