aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Make.include11
1 files changed, 10 insertions, 1 deletions
diff --git a/Make.include b/Make.include
index 1dbbd7e..20ef9b0 100644
--- a/Make.include
+++ b/Make.include
@@ -1,7 +1,16 @@
current: all
+PD_DEFINES = -DPD -DUNIX
+
+#################################
+# path to private Pd-headers
PDSOURCE ?= /usr/local/src/pd/src
+#define to true if private Pd-header g_canvas.h is in out search-path
+PD_DEFINES += -DHAVE_G_CANVAS_H
+#################################
+
+
.SUFFIXES: .pd_linux
EXT = pd_linux
@@ -15,7 +24,7 @@ PD_LIB = -lm -lc $(LIB)
DBG_CFLAGS=-W -Wno-parentheses -Wno-switch -Wno-unused
CFLAGS=-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-PD_CFLAGS = -DPD -DUNIX -DDL_OPEN -DHAVE_G_CANVAS_H -fPIC -fno-stack-protector $(DBG_CFLAGS) $(CFLAGS)
+PD_CFLAGS = $(PD_DEFINES) -fPIC -fno-stack-protector $(DBG_CFLAGS) $(CFLAGS)
PD_INCLUDE = -I. -I$(PDSOURCE) -I../../../../pd/src