From: Paul Brossier Date: Thu, 5 Oct 2006 12:03:43 +0000 (+0000) Subject: improve flags for windows and darwin puredata external X-Git-Tag: bzr2git~543 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a52f2984d615850a6da537075c50f21b74dd111;p=aubio.git improve flags for windows and darwin puredata external improve flags for windows and darwin puredata external --- 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 = \