X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=83a4e8257e11ba3541db923d1ea6c37697e1b60b;hb=a9b6cd4bb2b4b9a424fa63843a3fbcef05429c88;hp=c7c60b2527ccee9f48be863f5ed1cf9204ce548b;hpb=128608a085fd2a66e8145868c30b05c5c6e1cc3b;p=aweather diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index c7c60b2..83a4e82 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,22 +1,25 @@ -AM_CFLAGS = -Wall --std=gnu99 -I../ -AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) -AM_LDFLAGS = -module -avoid-version +AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) +AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib +AM_LDFLAGS = -module -avoid-version -no-undefined -plugindir = $(libdir)/gis +pluginsdir = $(pkglibdir) -plugin_LTLIBRARIES = \ - example.la \ - radar.la \ - ridge.la +plugins_LTLIBRARIES = -example_la_SOURCES = example.c example.h +if HAVE_RSL +plugins_LTLIBRARIES += radar.la +radar_la_SOURCES = \ + radar.c radar.h \ + level2.c level2.h \ + ../aweather-colormap.c \ + ../aweather-colormap.h \ + ../aweather-location.c \ + ../aweather-location.h +radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) \ + $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS)) +endif -ridge_la_SOURCES = ridge.c ridge.h - -radar_la_SOURCES = radar.c radar.h \ - marching.c marching.h \ - radar-colormap.c -radar_la_CPPFLAGS = $(RSL_CFLAGS) $(AM_CPPFLAGS) -radar_la_LIBADD = $(RSL_LIBS) +test: + ( cd ../; make test ) MAINTAINERCLEANFILES = Makefile.in