aboutsummaryrefslogtreecommitdiff
path: root/multio/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-03-17 02:41:47 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:08:22 +0200
commit5065a96db886a6e2b4a44cc5eb3b31e4c40ccea8 (patch)
treee9587aef317e154c705da2e5c349baf515691c3b /multio/Makefile
parent9cd1ec09c9ecc37be99f8f7523141b2740ba3beb (diff)
cleaned things up for the Pd-extended build system, it shouldn't break anything, simple things
svn path=/trunk/externals/hardware/; revision=4717
Diffstat (limited to 'multio/Makefile')
-rwxr-xr-xmultio/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/multio/Makefile b/multio/Makefile
index 9f79bae..729d964 100755
--- a/multio/Makefile
+++ b/multio/Makefile
@@ -3,6 +3,8 @@ CSYM=multio
current: pd_linux
+pd_src = ../../../pd
+
# ----------------------- NT -----------------------
pd_nt: $(NAME).dll
@@ -39,7 +41,7 @@ LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
-LINUXINCLUDE = -I../../src
+LINUXINCLUDE = -I../../src -I$(pd_src)/src
.c.pd_linux:
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
@@ -53,12 +55,15 @@ pd_darwin: $(NAME).pd_darwin
.SUFFIXES: .pd_darwin
-DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
- -Wno-unused -Wno-parentheses -Wno-switch
+DARWINCFLAGS = -DPD -O2 -Wall -W
+
+DARWININCLUDE = -I../../src -I$(pd_src)/src -I/sw/include
+DARWINLIBS = -L/sw/lib -lusb
.c.pd_darwin:
- $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
- $(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
+ $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
+ $(CC) -bundle -bundle_loader $(pd_src)/bin/pd $(DARWINLIBS) \
+ -o $*.pd_darwin $*.o
rm -f $*.o
# ----------------------------------------------------------