X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fplugins%2FMakefile.am;h=9e8628c54e0558c3f96928424891930bd093d352;hp=e5c17dda11e9fd15df885b91d21d09c016d8f871;hb=ca05387c80a2b4fd06074b2fdc3e46e752846abe;hpb=07448c519e963bae1cfde4f1ff353478dd28136c diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index e5c17dd..9e8628c 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,10 +1,17 @@ MAINTAINERCLEANFILES = Makefile.in AM_CFLAGS = -Wall --std=gnu99 -I$(top_srcdir)/src -AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS) -AM_LDFLAGS = -shared -module -avoid-version -no-undefined +AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(GL_CFLAGS) $(SOUP_CFLAGS) +AM_LDFLAGS = -shared -module -avoid-version LIBS = $(top_srcdir)/src/libgrits.la +if SYS_WIN +AM_LDFLAGS += -no-undefined +endif +if !SYS_MAC +AM_LDFLAGS += -Wl,--as-needed +endif + pluginsdir = "$(libdir)/$(GRITS_SUBDIR)" plugins_LTLIBRARIES = sat.la elev.la map.la env.la test.la @@ -14,12 +21,8 @@ map_la_SOURCES = map.c map.h env_la_SOURCES = env.c env.h test_la_SOURCES = test.c test.h -if NOTWIN32 -noinst_LTLIBRARIES = teapot.la -teapot_la_SOURCES = \ - $(top_srcdir)/examples/plugin/teapot.c \ - $(top_srcdir)/examples/plugin/teapot.h -endif +env_la_CPPFLAGS = $(AM_CPPFLAGS) +env_la_LDFLAGS = $(AM_LDFLAGS) test: ( cd ../; make test )