aboutsummaryrefslogtreecommitdiff
path: root/externals/build/linux/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'externals/build/linux/makefile')
-rw-r--r--externals/build/linux/makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile
index 4091598b..d4e2e4a1 100644
--- a/externals/build/linux/makefile
+++ b/externals/build/linux/makefile
@@ -46,12 +46,13 @@ CFLAGS = -fPIC -DPD -DUNIX $(OPTIM_FLAGS) \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
-INCLUDES = -I. -I.. -I../include
+INCLUDES = -I. -I.. -I../../../pd/src -I../include
%.pd_linux: ../src/%.c
$(CC) $(CFLAGS) $(INCLUDES) -o "$*.o" -c "../src/$*.c"
gcc -Wl,-export_dynamic -shared -o "$*.pd_linux" "$*.o" -lc -lm \
- `test -f $*.libs && cat $*.libs`
+ `test -f $*.libs && cat $*.libs` \
+ `test -f ../src/$*.libs && cat ../src/$*.libs`
chmod a-x "$*.pd_linux"
$(STRIP) $*.pd_linux
rm -f "$*.o"