From 5065a96db886a6e2b4a44cc5eb3b31e4c40ccea8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 17 Mar 2006 02:41:47 +0000 Subject: cleaned things up for the Pd-extended build system, it shouldn't break anything, simple things svn path=/trunk/externals/hardware/; revision=4717 --- multio/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'multio/Makefile') 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 # ---------------------------------------------------------- -- cgit v1.2.1