diff options
-rw-r--r-- | iem_mp3/src/makefile_d_fat | 62 | ||||
-rw-r--r-- | iem_t3_lib/src/makefile_d_fat | 62 | ||||
-rw-r--r-- | iemlib1/src/makefile_d_fat | 24 | ||||
-rw-r--r-- | iemlib2/src/makefile_d_fat | 25 |
4 files changed, 87 insertions, 86 deletions
diff --git a/iem_mp3/src/makefile_d_fat b/iem_mp3/src/makefile_d_fat index 38c4431..1463317 100644 --- a/iem_mp3/src/makefile_d_fat +++ b/iem_mp3/src/makefile_d_fat @@ -1,19 +1,22 @@ -current: all
-
+current: all + .SUFFIXES: .d_fat -PD_INSTALL_PATH ?= "/Applications/Pd.app/Contents/Resources"
-
-# path to iemlib.h +PDSOURCE = "/Applications/Pd.app/Contents/Resources/src" + IEMLIB_INCLUDE = ../../include -INCLUDE = -I. -I$(IEMLIB_INCLUDE) -I$(PD_INSTALL_PATH)/src
-
-CFLAGS =-DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch
-
-LFLAGS = -bundle -undefined suppress -flat_namespace
-
+PD_INCLUDES = -I. -I$(IEMLIB_INCLUDE) -I$(PDSOURCE) + +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 = mp3play~.c \ @@ -22,26 +25,23 @@ SRC = mp3play~.c \ TARGET = iem_mp3.d_fat -OBJ = $(SRC:.c=.o)
-
-#
-# ------------------ targets ------------------------------------
-#
-
-clean:
- rm ../$(TARGET)
- rm *.o
-
-all: $(OBJ)
- @echo :: $(OBJ)
- $(CC) -arch i386 -arch ppc $(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 +OBJ = $(SRC:.c=.o) + +# +# ------------------ targets ------------------------------------ +# + +clean: + rm -f ../$(TARGET) + rm -f *.o +all: $(OBJ) + @echo :: $(OBJ) + $(CC) $(ARCH_FLAGS) $(LFLAGS) -o $(TARGET) *.o + strip -S -x $(TARGET) + mv $(TARGET) .. +$(OBJ) : %.o : %.c + $(CC) $(ARCH_FLAGS) $(PD_DEFINES) $(CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c diff --git a/iem_t3_lib/src/makefile_d_fat b/iem_t3_lib/src/makefile_d_fat index c51a7bd..8ac96a1 100644 --- a/iem_t3_lib/src/makefile_d_fat +++ b/iem_t3_lib/src/makefile_d_fat @@ -1,19 +1,22 @@ -current: all
-
+current: all + .SUFFIXES: .d_fat -PD_INSTALL_PATH ?= "/Applications/Pd.app/Contents/Resources"
-
-# path to iemlib.h +PDSOURCE = "/Applications/Pd.app/Contents/Resources/src" + IEMLIB_INCLUDE = ../../include -INCLUDE = -I. -I$(IEMLIB_INCLUDE) -I$(PD_INSTALL_PATH)/src
-
-CFLAGS =-DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch
-
-LFLAGS = -bundle -undefined suppress -flat_namespace
-
+PD_INCLUDES = -I. -I$(IEMLIB_INCLUDE) -I$(PDSOURCE) + +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 = t3_bpe.c \ @@ -27,26 +30,23 @@ SRC = t3_bpe.c \ TARGET = iem_t3_lib.d_fat -OBJ = $(SRC:.c=.o)
-
-#
-# ------------------ targets ------------------------------------
-#
-
-clean:
- rm ../$(TARGET)
- rm *.o
-
-all: $(OBJ)
- @echo :: $(OBJ)
- $(CC) -arch i386 -arch ppc $(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 +OBJ = $(SRC:.c=.o) + +# +# ------------------ targets ------------------------------------ +# + +clean: + rm -f ../$(TARGET) + rm -f *.o +all: $(OBJ) + @echo :: $(OBJ) + $(CC) $(ARCH_FLAGS) $(LFLAGS) -o $(TARGET) *.o + strip -S -x $(TARGET) + mv $(TARGET) .. +$(OBJ) : %.o : %.c + $(CC) $(ARCH_FLAGS) $(PD_DEFINES) $(CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c 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 diff --git a/iemlib2/src/makefile_d_fat b/iemlib2/src/makefile_d_fat index 5b7c752..618bef1 100644 --- a/iemlib2/src/makefile_d_fat +++ b/iemlib2/src/makefile_d_fat @@ -2,18 +2,22 @@ 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 -DHAVE_G_CANVAS_H -O2 -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch +PD_DEFINES = -DPD +PD_DEFINES += -DHAVE_G_CANVAS_H + +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 = add2_comma.c \ @@ -68,19 +72,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 |