aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/makefile.pd-linux
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-10-17 02:47:01 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-10-17 02:47:01 +0000
commit0d28c65db3a665bcc5045c8885a83ba83ae46f4a (patch)
treeb36ef7edf31f6950a03a9a0a5e54905dbb6de054 /externals/grill/py/makefile.pd-linux
parent5ef85160f748c0963030a30868c6c23183f7a14b (diff)
""
svn path=/trunk/; revision=1100
Diffstat (limited to 'externals/grill/py/makefile.pd-linux')
-rw-r--r--externals/grill/py/makefile.pd-linux24
1 files changed, 21 insertions, 3 deletions
diff --git a/externals/grill/py/makefile.pd-linux b/externals/grill/py/makefile.pd-linux
index af9c999c..d77ea836 100644
--- a/externals/grill/py/makefile.pd-linux
+++ b/externals/grill/py/makefile.pd-linux
@@ -17,15 +17,26 @@ include $(CONFIG)
# compiler+linker stuff
INCLUDES=$(PDPATH) $(PYTHONINCLUDE)
LIBPATH=$(PYTHONLIB)
-FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS
-CFLAGS=-O2 $(UFLAGS)
+FLAGS=-DFLEXT_SYS=2
+CFLAGS=-pthread $(UFLAGS)
LIBS=util python$(PYTHONVER)
+ifdef DEBUG
+CFLAGS+=-g -DFLEXT_DEBUG
+else
+CFLAGS+=-O2
+endif
ifdef FLEXT_SHARED
-CFLAGS+=-shared -DFLEXT_SHARED
+CFLAGS+=-shared
+FLAGS+=-DFLEXT_SHARED
LIBPATH+=$(FLEXTPATH)
+
+ifdef DEBUG
+LIBFLEXT=-lflext_d
+else
LIBFLEXT=-lflext
+endif
ifeq ($(CXX),icc)
LDFLAGS+=-i_dynamic
@@ -35,7 +46,12 @@ endif
else
+FLAGS+=-DFLEXT_THREADS
+ifdef DEBUG
+LIBFLEXT=$(FLEXTPATH)/libflext_td.a
+else
LIBFLEXT=$(FLEXTPATH)/libflext_t.a
+endif
endif
@@ -65,7 +81,9 @@ $(TARGDIR)/%.o : $(SRCDIR)/%.cpp
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS))
$(CXX) -shared $(LDFLAGS) -o $@ $^ $(patsubst %,-L%,$(LIBPATH)) $(LIBFLEXT) $(patsubst %,-l%,$(LIBS))
+ifndef DEBUG
strip --strip-unneeded $@
+endif
chmod 755 $@
$(INSTPATH):