X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=55166a05e72d011c627a2d4eec59f7ac4f7a4721;hp=74587937fec5fff3481d0629474d1820a6aff077;hb=8addcb17f030c9d9330f125f6160eedbccddf63d;hpb=8417951998fb6807532b36183841097dbf549def diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 7458793..55166a0 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,19 +1,39 @@ -AM_CFLAGS = -Wall --std=gnu99 -I../ -AM_CPPFLAGS = $(GIS_CFLAGS) -AM_LDFLAGS = -module -avoid-version -no-undefined -LIBS = $(GIS_LIBS) +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 +LIBS = $(GRITS_LIBS) 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)\"" \ + -I$(top_srcdir)/lib +alert_la_LIBADD = $(GRITS_LIBS) \ + $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS)) if HAVE_RSL plugins_LTLIBRARIES += radar.la -radar_la_SOURCES = radar.c radar.h \ - marching.c marching.h \ - radar-colormap.c \ - ../aweather-location.c -radar_la_LDFLAGS = $(AM_LDFLAGS) $(RSL_LIBS) +radar_la_SOURCES = \ + radar.c radar.h \ + level2.c level2.h \ + 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: