aboutsummaryrefslogtreecommitdiff
path: root/Make.include
diff options
context:
space:
mode:
Diffstat (limited to 'Make.include')
-rw-r--r--Make.include11
1 files changed, 7 insertions, 4 deletions
diff --git a/Make.include b/Make.include
index 20ef9b0..aaca607 100644
--- a/Make.include
+++ b/Make.include
@@ -6,6 +6,9 @@ PD_DEFINES = -DPD -DUNIX
# path to private Pd-headers
PDSOURCE ?= /usr/local/src/pd/src
+# path to iemlib.h
+IEMLIB_INCLUDE = ../../include
+
#define to true if private Pd-header g_canvas.h is in out search-path
PD_DEFINES += -DHAVE_G_CANVAS_H
#################################
@@ -26,11 +29,11 @@ DBG_CFLAGS=-W -Wno-parentheses -Wno-switch -Wno-unused
CFLAGS=-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
PD_CFLAGS = $(PD_DEFINES) -fPIC -fno-stack-protector $(DBG_CFLAGS) $(CFLAGS)
-PD_INCLUDE = -I. -I$(PDSOURCE) -I../../../../pd/src
+PD_INCLUDES = -I. -I$(IEMLIB_INCLUDE) -I$(PDSOURCE) -I../../../../pd/src
# the sources
-SRC = $(sort $(filter %.c, $(wildcard *.c)))
-
+#SRC = $(sort $(filter %.c, $(wildcard *.c)))
+
OBJ = $(SRC:.c=.o)
#
@@ -49,5 +52,5 @@ all: $(OBJ)
$(OBJ) : %.o : %.c
touch $*.c
- $(CC) $(PD_CFLAGS) $(PD_INCLUDE) -c -o $*.o $*.c
+ $(CC) $(PD_CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c