From 6a52f2984d615850a6da537075c50f21b74dd111 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 5 Oct 2006 12:03:43 +0000 Subject: [PATCH] improve flags for windows and darwin puredata external improve flags for windows and darwin puredata external --- plugins/puredata/Makefile.am | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/plugins/puredata/Makefile.am b/plugins/puredata/Makefile.am index b00ee657..12037a98 100644 --- a/plugins/puredata/Makefile.am +++ b/plugins/puredata/Makefile.am @@ -2,9 +2,7 @@ # inspired from Guenter Geiger's Makefile.am for plugin # pure-data/externals/plugin~/Makefile.am -- rev 1.1 -SUFFIXES = .pd_linux -PDDIR = $(prefix)/lib/pd -pddir = $(PDDIR) +pddir = $(prefix)/lib/pd ## Make and install the shared library. pdinstalldir = $(pddir)/extra @@ -37,18 +35,23 @@ aubio_dll_SOURCES = $(ALLSOURCES) pdincludedir = $(pddir)/src -AM_CFLAGS = -I$(top_srcdir)/src -I$(pdincludedir) -DPD -fPIC -DPIC @AUBIO_CFLAGS@ +AM_CFLAGS = -I$(top_srcdir)/src -I$(pdincludedir) -DPD @AUBIO_CFLAGS@ if MINGW -AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared -lpd +else +AM_CFLAGS += -fPIC -DPIC +endif + +AM_LDFLAGS = -L$(top_builddir)/src -laubio +if MINGW +AM_LDFLAGS += -export_dynamic -shared -lpd else if DARWIN -AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -bundle -undefined suppress -flat_namespace +AM_LDFLAGS += -bundle -undefined suppress -flat_namespace else -AM_LDFLAGS = -L$(top_builddir)/src/.libs -laubio -export_dynamic -shared +AM_LDFLAGS += -export_dynamic -shared endif endif - ## Install the documentation. pdinstallref_DATA = \ -- 2.26.2