X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=6a00ebf263eecdaa5e8fa3b5c61340601384b4c2;hb=refs%2Fheads%2Fautomake-fix;hp=912bb46160111adc5a4ef675c0fa291de5f8bb3c;hpb=0b22be9563d7fd7b63294b5cffb1954726b933ff;p=aweather diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 912bb46..6a00ebf 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,8 +1,15 @@ AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -AM_LDFLAGS = -shared -module -avoid-version -Wl,--as-needed +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 = alert.la @@ -11,28 +18,31 @@ alert_la_SOURCES = \ alert.c alert.h \ alert-info.c alert-info.h alert_la_CPPFLAGS = \ - -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" + -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 radar_la_SOURCES = \ radar.c radar.h \ level2.c level2.h \ - radar-info.c radar-info.h \ - ../aweather-location.c \ - ../aweather-location.h + radar-info.c radar-info.h radar_la_CPPFLAGS = \ - -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \ + -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \ -I$(top_srcdir)/src radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) endif -if WIN32 -AM_LDFLAGS += -no-undefined -dots = .. -endif - test: ( cd ../; make test )