From 0f87944313b947e8f9e975bdfb7789314ca7e52f Mon Sep 17 00:00:00 2001 From: musil Date: Wed, 21 Aug 2013 15:36:11 +0000 Subject: iemlib.h is in include folder svn path=/trunk/externals/iemlib/; revision=17194 --- iemlib1/src/makefile_d_fat | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'iemlib1/src/makefile_d_fat') diff --git a/iemlib1/src/makefile_d_fat b/iemlib1/src/makefile_d_fat index 9948e3c..d8ac5f8 100644 --- a/iemlib1/src/makefile_d_fat +++ b/iemlib1/src/makefile_d_fat @@ -2,18 +2,21 @@ current: all .SUFFIXES: .d_fat -PD_INSTALL_PATH ?= "/Applications/Pd.app/Contents/Resources" +PDSOURCE = "/Applications/Pd.app/Contents/Resources/src" -# path to iemlib.h IEMLIB_INCLUDE = ../../include -INCLUDE = -I. -I$(IEMLIB_INCLUDE) -I$(PD_INSTALL_PATH)/src +PD_INCLUDES = -I. -I$(IEMLIB_INCLUDE) -I$(PDSOURCE) -CFLAGS =-DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch +PD_DEFINES = -DPD + +CFLAGS =-O2 -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch -fPIC LFLAGS = -bundle -undefined suppress -flat_namespace +ARCH_FLAGS=-arch i386 -arch ppc + # the sources SRC = biquad_freq_resp.c \ @@ -55,19 +58,16 @@ OBJ = $(SRC:.c=.o) # clean: - rm ../$(TARGET) - rm *.o + rm -f ../$(TARGET) + rm -f *.o all: $(OBJ) @echo :: $(OBJ) - $(CC) -arch i386 -arch ppc $(LFLAGS) -o $(TARGET) *.o + $(CC) $(ARCH_FLAGS) $(LFLAGS) -o $(TARGET) *.o strip -S -x $(TARGET) mv $(TARGET) .. $(OBJ) : %.o : %.c - touch $*.c - $(CC) -arch i386 -arch ppc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c - - + $(CC) $(ARCH_FLAGS) $(PD_DEFINES) $(CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c -- cgit v1.2.1