aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/makefile b/src/makefile
index fb74c4f..3cab05a 100644
--- a/src/makefile
+++ b/src/makefile
@@ -2,7 +2,9 @@ current: all
.SUFFIXES: .pd_linux
-INCLUDE = -I. -I/usr/local/src/pd/src
+PDSOURCE = /usr/local/src/pd/src
+
+INCLUDE = -I. -I${PDSOURCE}
LDFLAGS = -export-dynamic -shared
LIB = -ldl -lm -lpthread
@@ -52,8 +54,8 @@ OBJ = $(SRC:.c=.o)
#
clean:
- rm ../$(TARGET)
- rm *.o
+ rm -f ../$(TARGET)
+ rm -f *.o
all: $(OBJ)
@echo :: $(OBJ)