aboutsummaryrefslogtreecommitdiff
path: root/externals/grill
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2007-03-13 23:41:23 +0000
committerThomas Grill <xovo@users.sourceforge.net>2007-03-13 23:41:23 +0000
commit942e21c0517370cb8163562d9b5b9990d6e84863 (patch)
treeefa7e19061e86b62fdbafabd13c4f827580909d2 /externals/grill
parent3bc26233a8df24bd6d15c031d1a6cdd0f6f23535 (diff)
fix build system for STK and SndObj support (currently unix only)
fixed SndObjs include files changed eol-style no stripping of local symbols small changes to flext build system update docs svn path=/trunk/; revision=7483
Diffstat (limited to 'externals/grill')
-rw-r--r--externals/grill/flext/build/config-lnx.def11
-rw-r--r--externals/grill/flext/build/config-mac.def11
-rw-r--r--externals/grill/flext/build/config-win.def2
-rw-r--r--externals/grill/flext/build/gnumake-lnx-gcc.inc8
-rw-r--r--externals/grill/flext/build/gnumake-lnx-icc.inc8
-rw-r--r--externals/grill/flext/build/gnumake-mac-gcc.inc8
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-gcc.inc18
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-icc.inc18
-rw-r--r--externals/grill/flext/buildsys/lnx/pd/config-gcc.def24
-rw-r--r--externals/grill/flext/buildsys/lnx/pd/config-icc.def24
-rw-r--r--externals/grill/flext/buildsys/mac/gnumake-gcc.inc18
-rw-r--r--externals/grill/flext/buildsys/mac/max/config-gcc.def28
-rw-r--r--externals/grill/flext/buildsys/mac/pd/config-gcc.def26
-rw-r--r--externals/grill/flext/source/flsndobj.h11
-rw-r--r--externals/grill/flext/source/flstk.h14
15 files changed, 181 insertions, 48 deletions
diff --git a/externals/grill/flext/build/config-lnx.def b/externals/grill/flext/build/config-lnx.def
index 5f4a3d89..88c43f4d 100644
--- a/externals/grill/flext/build/config-lnx.def
+++ b/externals/grill/flext/build/config-lnx.def
@@ -1,11 +1,2 @@
-# use SIMD CPU instructions (Altivec, SSE)?
+# comment out to inhibit SIMD (Altivec/SSE) usage
SIMD=1
-
-# where is the STK installation?
-# (uncomment the line with # to disable STK support)
-#STK=/usr/local/lib/stk
-
-# where is the Sndobjs installation?
-# (uncomment the line with # to disable SNDOBJ support)
-# please be sure to delete an eventual m_pd.h file from the SNDOBJ include folder!!
-#SNDOBJ=/usr/local/lib/sndobj
diff --git a/externals/grill/flext/build/config-mac.def b/externals/grill/flext/build/config-mac.def
index 2fdee70b..88c43f4d 100644
--- a/externals/grill/flext/build/config-mac.def
+++ b/externals/grill/flext/build/config-mac.def
@@ -1,11 +1,2 @@
-# uncomment to inhibit SIMD usage
+# comment out to inhibit SIMD (Altivec/SSE) usage
SIMD=1
-
-# where is the STK installation?
-# (uncomment the line with # to disable STK support)
-#STK=/usr/local/lib/stk
-
-# where is the Sndobjs installation?
-# (uncomment the line with # to disable SNDOBJ support)
-# please be sure to delete an eventual m_pd.h file from the SNDOBJ include folder!!
-#SNDOBJ=/usr/local/lib/sndobj
diff --git a/externals/grill/flext/build/config-win.def b/externals/grill/flext/build/config-win.def
index 628831b2..88c43f4d 100644
--- a/externals/grill/flext/build/config-win.def
+++ b/externals/grill/flext/build/config-win.def
@@ -1,2 +1,2 @@
-# use SIMD instructions (Intel SSE)?
+# comment out to inhibit SIMD (Altivec/SSE) usage
SIMD=1
diff --git a/externals/grill/flext/build/gnumake-lnx-gcc.inc b/externals/grill/flext/build/gnumake-lnx-gcc.inc
index 1eb1ce77..aec212c5 100644
--- a/externals/grill/flext/build/gnumake-lnx-gcc.inc
+++ b/externals/grill/flext/build/gnumake-lnx-gcc.inc
@@ -2,16 +2,12 @@ ifdef SIMD
DEFS += -DFLEXT_USE_SIMD
endif
-ifdef SNDOBJ
+ifdef SNDOBJ_LIB
SRCS+=$(SRCS_SNDOBJ)
HDRS+=$(HDRS_SNDOBJ)
-INCPATH+=-I$(SNDOBJ)
-LIBS+=-lsndobj
endif
-ifdef STK
+ifdef STK_LIB
SRCS+=$(SRCS_STK)
HDRS+=$(HDRS_STK)
-INCPATH+=-I$(STK)
-LIBS+=-lstk
endif
diff --git a/externals/grill/flext/build/gnumake-lnx-icc.inc b/externals/grill/flext/build/gnumake-lnx-icc.inc
index 1eb1ce77..aec212c5 100644
--- a/externals/grill/flext/build/gnumake-lnx-icc.inc
+++ b/externals/grill/flext/build/gnumake-lnx-icc.inc
@@ -2,16 +2,12 @@ ifdef SIMD
DEFS += -DFLEXT_USE_SIMD
endif
-ifdef SNDOBJ
+ifdef SNDOBJ_LIB
SRCS+=$(SRCS_SNDOBJ)
HDRS+=$(HDRS_SNDOBJ)
-INCPATH+=-I$(SNDOBJ)
-LIBS+=-lsndobj
endif
-ifdef STK
+ifdef STK_LIB
SRCS+=$(SRCS_STK)
HDRS+=$(HDRS_STK)
-INCPATH+=-I$(STK)
-LIBS+=-lstk
endif
diff --git a/externals/grill/flext/build/gnumake-mac-gcc.inc b/externals/grill/flext/build/gnumake-mac-gcc.inc
index 1eb1ce77..aec212c5 100644
--- a/externals/grill/flext/build/gnumake-mac-gcc.inc
+++ b/externals/grill/flext/build/gnumake-mac-gcc.inc
@@ -2,16 +2,12 @@ ifdef SIMD
DEFS += -DFLEXT_USE_SIMD
endif
-ifdef SNDOBJ
+ifdef SNDOBJ_LIB
SRCS+=$(SRCS_SNDOBJ)
HDRS+=$(HDRS_SNDOBJ)
-INCPATH+=-I$(SNDOBJ)
-LIBS+=-lsndobj
endif
-ifdef STK
+ifdef STK_LIB
SRCS+=$(SRCS_STK)
HDRS+=$(HDRS_STK)
-INCPATH+=-I$(STK)
-LIBS+=-lstk
endif
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc b/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
index a0d12ed1..39639d86 100644
--- a/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
+++ b/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
@@ -40,6 +40,24 @@ endif
##############################################
+ifdef STK_INC
+INCPATH += -I$(STK_INC)
+endif
+ifdef STK_LIB
+LIBS += $(STK_LIB)
+endif
+
+##############################################
+
+ifdef SNDOBJ_INC
+INCPATH += -I$(SNDOBJ_INC)
+endif
+ifdef SNDOBJ_LIB
+LIBS += $(SNDOBJ_LIB)
+endif
+
+##############################################
+
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-icc.inc b/externals/grill/flext/buildsys/lnx/gnumake-icc.inc
index 7e665db3..b95dd55a 100644
--- a/externals/grill/flext/buildsys/lnx/gnumake-icc.inc
+++ b/externals/grill/flext/buildsys/lnx/gnumake-icc.inc
@@ -40,6 +40,24 @@ endif
##############################################
+ifdef STK_INC
+INCPATH += -I$(STK_INC)
+endif
+ifdef STK_LIB
+LIBS += $(STK_LIB)
+endif
+
+##############################################
+
+ifdef SNDOBJ_INC
+INCPATH += -I$(SNDOBJ_INC)
+endif
+ifdef SNDOBJ_LIB
+LIBS += $(SNDOBJ_LIB)
+endif
+
+##############################################
+
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
diff --git a/externals/grill/flext/buildsys/lnx/pd/config-gcc.def b/externals/grill/flext/buildsys/lnx/pd/config-gcc.def
index be09f6d8..e0340e77 100644
--- a/externals/grill/flext/buildsys/lnx/pd/config-gcc.def
+++ b/externals/grill/flext/buildsys/lnx/pd/config-gcc.def
@@ -21,6 +21,30 @@ INSTPATH=/usr/local/lib/pd/extra
###############################################################
+# STK (synthesis tool kit) support
+# http://ccrma.stanford.edu/software/stk
+
+# where to find the STK header files (e.g. stk.h)
+STK_INC=/usr/local/include/stk
+
+# where to find the STK library (normally libstk.a)
+# (comment out STK_LIB if you don't use STK)
+#STK_LIB=/usr/local/lib/libstk.a
+
+###############################################################
+
+# SndObj support
+# http://music.nuim.ie//musictec/SndObj
+
+# where to find the SndObj header files (e.g. sndobj.h)
+SNDOBJ_INC=/usr/local/include/sndobj
+
+# where to find the SndObj library (normally libsndobj.a)
+# (comment out STK_LIB if you don't use SndObj)
+#SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+###############################################################
+
# user defined compiler flags
# (check if they match your system!)
UFLAGS=-msse -mfpmath=sse -ffast-math
diff --git a/externals/grill/flext/buildsys/lnx/pd/config-icc.def b/externals/grill/flext/buildsys/lnx/pd/config-icc.def
index 526eba11..6032cfa2 100644
--- a/externals/grill/flext/buildsys/lnx/pd/config-icc.def
+++ b/externals/grill/flext/buildsys/lnx/pd/config-icc.def
@@ -21,6 +21,30 @@ INSTPATH=/usr/local/lib/pd/extra
###############################################################
+# STK (synthesis tool kit) support
+# http://ccrma.stanford.edu/software/stk
+
+# where to find the STK header files (e.g. stk.h)
+STK_INC=/usr/local/include/stk
+
+# where to find the STK library (normally libstk.a)
+# (comment out STK_LIB if you don't use STK)
+#STK_LIB=/usr/local/lib/libstk.a
+
+###############################################################
+
+# SndObj support
+# http://music.nuim.ie//musictec/SndObj
+
+# where to find the SndObj header files (e.g. sndobj.h)
+SNDOBJ_INC=/usr/local/include/sndobj
+
+# where to find the SndObj library (normally libsndobj.a)
+# (comment out STK_LIB if you don't use SndObj)
+#SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+###############################################################
+
# user defined compiler flags
# (check if they match your system!)
UFLAGS=
diff --git a/externals/grill/flext/buildsys/mac/gnumake-gcc.inc b/externals/grill/flext/buildsys/mac/gnumake-gcc.inc
index 7572e455..41eac3fd 100644
--- a/externals/grill/flext/buildsys/mac/gnumake-gcc.inc
+++ b/externals/grill/flext/buildsys/mac/gnumake-gcc.inc
@@ -48,6 +48,24 @@ endif
##############################################
+ifdef STK_INC
+INCPATH += -I$(STK_INC)
+endif
+ifdef STK_LIB
+LIBS += $(STK_LIB)
+endif
+
+##############################################
+
+ifdef SNDOBJ_INC
+INCPATH += -I$(SNDOBJ_INC)
+endif
+ifdef SNDOBJ_LIB
+LIBS += $(SNDOBJ_LIB)
+endif
+
+##############################################
+
LDFLAGS += $(patsubst %,-arch %,$(ARCH))
ifdef OSXSDK
diff --git a/externals/grill/flext/buildsys/mac/max/config-gcc.def b/externals/grill/flext/buildsys/mac/max/config-gcc.def
index 5f9a1904..cec5b624 100644
--- a/externals/grill/flext/buildsys/mac/max/config-gcc.def
+++ b/externals/grill/flext/buildsys/mac/max/config-gcc.def
@@ -1,6 +1,6 @@
# where are the Max/MSP SDK header files?
# you should have the latest version!
-MAXSDKPATH=/Applications/MaxMSP\ 4.5/MaxMSP-SDK/c74support
+MAXSDKPATH=/Applications/MaxMSP\ 4.6/MaxMSP-SDK/c74support
###############################################################
@@ -23,7 +23,31 @@ INSTPATH=/Library/Application\ Support/Cycling\ \'74/externals/flext
INITPATH=/Library/Application\ Support/Cycling\ \'74/init
# where should the help files be installed?
-HELPPATH=/Applications/MaxMSP\ 4.5/max-help/flext
+HELPPATH=/Applications/MaxMSP\ 4.6/max-help/flext
+
+###############################################################
+
+# STK (synthesis tool kit) support
+# http://ccrma.stanford.edu/software/stk
+
+# where to find the STK header files (e.g. stk.h)
+STK_INC=/usr/local/include/stk
+
+# where to find the STK library (normally libstk.a)
+# (comment out STK_LIB if you don't use STK)
+#STK_LIB=/usr/local/lib/libstk.a
+
+###############################################################
+
+# SndObj support
+# http://music.nuim.ie//musictec/SndObj
+
+# where to find the SndObj header files (e.g. sndobj.h)
+SNDOBJ_INC=/usr/local/include/sndobj
+
+# where to find the SndObj library (normally libsndobj.a)
+# (comment out STK_LIB if you don't use SndObj)
+#SNDOBJ_LIB=/usr/local/lib/libsndobj.a
###############################################################
diff --git a/externals/grill/flext/buildsys/mac/pd/config-gcc.def b/externals/grill/flext/buildsys/mac/pd/config-gcc.def
index 038fe1c1..a724b2e4 100644
--- a/externals/grill/flext/buildsys/mac/pd/config-gcc.def
+++ b/externals/grill/flext/buildsys/mac/pd/config-gcc.def
@@ -1,6 +1,6 @@
# where is the PD installation including source code?
# (this should point to the main folder, which has a "src" subfolder)
-PDPATH=/Applications/Pd-0.38-3.app/Contents/Resources
+PDPATH=/Applications/Pd-0.40-2.app/Contents/Resources
# where is the PD executable?
PDBIN=$(PDPATH)/bin/pd
@@ -24,6 +24,30 @@ INSTPATH=$(PDPATH)/extra
###############################################################
+# STK (synthesis tool kit) support
+# http://ccrma.stanford.edu/software/stk
+
+# where to find the STK header files (e.g. stk.h)
+STK_INC=/usr/local/include/stk
+
+# where to find the STK library (normally libstk.a)
+# (comment out STK_LIB if you don't use STK)
+#STK_LIB=/usr/local/lib/libstk.a
+
+###############################################################
+
+# SndObj support
+# http://music.nuim.ie//musictec/SndObj
+
+# where to find the SndObj header files (e.g. sndobj.h)
+SNDOBJ_INC=/usr/local/include/sndobj
+
+# where to find the SndObj library (normally libsndobj.a)
+# (comment out STK_LIB if you don't use SndObj)
+#SNDOBJ_LIB=/usr/local/lib/libsndobj.a
+
+###############################################################
+
# user defined compiler flags
UFLAGS += -ffast-math
diff --git a/externals/grill/flext/source/flsndobj.h b/externals/grill/flext/source/flsndobj.h
index 4f20e50c..c62b87d5 100644
--- a/externals/grill/flext/source/flsndobj.h
+++ b/externals/grill/flext/source/flsndobj.h
@@ -2,7 +2,7 @@
flext - C++ layer for Max/MSP and pd (pure data) externals
-Copyright (c) 2001-2006 Thomas Grill (gr@grrrr.org)
+Copyright (c) 2001-2007 Thomas Grill (gr@grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
@@ -13,11 +13,16 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#include "flext.h"
+// PI is defined in the Max/MSP SDK, but clashes with SndObj.h
+#ifdef PI
+#undef PI
+#endif
+
#ifndef FLEXT_THREADS
#define NOPTHREAD
#endif
-#include <SndObj/SndObj.h>
-#include <SndObj/SndIO.h>
+#include <SndObj.h>
+#include <SndIO.h>
#undef NOPTHREAD
diff --git a/externals/grill/flext/source/flstk.h b/externals/grill/flext/source/flstk.h
index 4a9b7ece..c3376cb5 100644
--- a/externals/grill/flext/source/flstk.h
+++ b/externals/grill/flext/source/flstk.h
@@ -2,7 +2,7 @@
flext - C++ layer for Max/MSP and pd (pure data) externals
-Copyright (c) 2001-2005 Thomas Grill (gr@grrrr.org)
+Copyright (c) 2001-2007 Thomas Grill (gr@grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
@@ -12,6 +12,12 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define __FLSTK_H
#include "flext.h"
+
+// PI is defined in the Max/MSP SDK, but clashes with Stk.h
+#ifdef PI
+#undef PI
+#endif
+
#include <Stk.h>
class FLEXT_SHARE flext_stk:
@@ -40,7 +46,8 @@ protected:
inline MY_FLOAT lastOut() const { return (MY_FLOAT)buf[index]; }
- inline MY_FLOAT tick() {
+ inline MY_FLOAT tick()
+ {
if(++index >= vecsz) index = 0;
return lastOut();
}
@@ -61,7 +68,8 @@ protected:
public:
Output(t_sample *b,int vecsz);
- inline void tick(MY_FLOAT s) {
+ inline void tick(MY_FLOAT s)
+ {
buf[index] = (t_sample)s;
if(++index >= vecsz) index = 0;
}