shithub: aubio

Download patch

ref: 6a52f2984d615850a6da537075c50f21b74dd111
parent: f33fec1b7ffcf15087971c3ed26fd45d3385a126
author: Paul Brossier <piem@altern.org>
date: Thu Oct 5 08:03:43 EDT 2006

improve flags for windows and darwin puredata external
improve flags for windows and darwin puredata external


--- 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,17 +35,22 @@
 
 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.