X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=cf4551301c7907ec0f2206f4f1e6b530953b1d1a;hb=fb279b9874dd68915fc70c31b8f92e72d624d495;hp=6f288f4258a5e69d8ba1ef20a92ffd0827cb6ed0;hpb=c31e18dad24a2fcf9e9624347906c9c020154f12;p=grits diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 6f288f4..cf45513 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,23 +1,34 @@ MAINTAINERCLEANFILES = Makefile.in -AM_CFLAGS = -Wall --std=gnu99 -I../ -AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) -AM_LDFLAGS = -module -avoid-version -no-undefined -LIBS = $(top_srcdir)/src/libgis.la +AM_CFLAGS = -Wall --std=gnu99 -I$(top_srcdir)/src +AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(GL_CFLAGS) $(SOUP_CFLAGS) +AM_LDFLAGS = -shared -module -avoid-version +LIBS = $(top_srcdir)/src/libgrits.la -pluginsdir = "$(libdir)/gis" +if SYS_WIN +AM_LDFLAGS += -no-undefined +endif +if !SYS_MAC +AM_LDFLAGS += -Wl,--as-needed +endif -plugins_LTLIBRARIES = bmng.la srtm.la map.la env.la test.la -bmng_la_SOURCES = bmng.c bmng.h -srtm_la_SOURCES = srtm.c srtm.h +pluginsdir = "$(libdir)/$(GRITS_SUBDIR)" + +plugins_LTLIBRARIES = sat.la elev.la map.la env.la test.la +sat_la_SOURCES = sat.c sat.h +elev_la_SOURCES = elev.c elev.h map_la_SOURCES = map.c map.h env_la_SOURCES = env.c env.h test_la_SOURCES = test.c test.h +env_la_LDFLAGS = $(AM_LDFLAGS) -lglut +if HAVE_GLUT noinst_LTLIBRARIES = teapot.la teapot_la_SOURCES = \ - $(top_srcdir)/examples/plugin/teapot.c + $(top_srcdir)/examples/plugin/teapot.c \ $(top_srcdir)/examples/plugin/teapot.h +teapot_la_LDFLAGS = $(AM_LDFLAGS) -lglut -rpath $(libdir) # I hate you libtool +endif test: ( cd ../; make test )