aboutsummaryrefslogtreecommitdiff
path: root/iem_t3_lib/src
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2013-08-21 15:36:11 +0000
committermusil <tmusil@users.sourceforge.net>2013-08-21 15:36:11 +0000
commit0f87944313b947e8f9e975bdfb7789314ca7e52f (patch)
tree355899bc300b3a5574d7bbfeb0bf0460f0871380 /iem_t3_lib/src
parentf89256083bc092bda6cc55a1b7c54cd338278e30 (diff)
iemlib.h is in include folder
svn path=/trunk/externals/iemlib/; revision=17194
Diffstat (limited to 'iem_t3_lib/src')
-rw-r--r--iem_t3_lib/src/makefile_d_fat62
1 files changed, 31 insertions, 31 deletions
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