aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/makefile.pd-linux
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-06-12 13:16:06 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-06-12 13:16:06 +0000
commita8c6a5df92ccd331682f108b488fc101105939e0 (patch)
tree9b74b67a2db3d9c24d61d4a5eb54de2c7df63aa8 /externals/grill/xsample/makefile.pd-linux
parentdd5ec533e743674a97344177fbc47925c686ba85 (diff)
""
svn path=/trunk/; revision=699
Diffstat (limited to 'externals/grill/xsample/makefile.pd-linux')
-rw-r--r--externals/grill/xsample/makefile.pd-linux12
1 files changed, 10 insertions, 2 deletions
diff --git a/externals/grill/xsample/makefile.pd-linux b/externals/grill/xsample/makefile.pd-linux
index d5ba9016..6bc5935a 100644
--- a/externals/grill/xsample/makefile.pd-linux
+++ b/externals/grill/xsample/makefile.pd-linux
@@ -20,6 +20,14 @@ FLAGS=-DFLEXT_SYS=2
CFLAGS=${UFLAGS} -O6 -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions
LIBS=m
+ifdef FLEXT_SHARED
+CFLAGS+=-DFLEXT_SHARED
+LDFLAGS+=-Bdynamic
+LINKFLEXT=-lflext
+else
+LINKFLEXT=$(FLEXTLIB)
+endif
+
# ----------------------------------------------
# the rest can stay untouched
# ----------------------------------------------
@@ -43,8 +51,8 @@ $(TARGDIR):
$(TARGDIR)/%.o : $(SRCDIR)/%.cpp
$(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@
-$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB)
- $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -o $@
+$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS))
+ $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -L$(FLEXTPATH) $(LINKFLEXT) -o $@
strip --strip-unneeded $@
chmod 755 $@