aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/mac/max
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/buildsys/mac/max')
-rw-r--r--externals/grill/flext/buildsys/mac/max/config-gcc.def26
-rw-r--r--externals/grill/flext/buildsys/mac/max/gnumake-gcc.inc2
2 files changed, 20 insertions, 8 deletions
diff --git a/externals/grill/flext/buildsys/mac/max/config-gcc.def b/externals/grill/flext/buildsys/mac/max/config-gcc.def
index 66a8b990..5f9a1904 100644
--- a/externals/grill/flext/buildsys/mac/max/config-gcc.def
+++ b/externals/grill/flext/buildsys/mac/max/config-gcc.def
@@ -1,6 +1,6 @@
# where are the Max/MSP SDK header files?
# you should have the latest version!
-MAXSDKPATH=/Applications/MaxMSP\ 4.5/MaxMSP-SDK/4.5\ headers/c74support
+MAXSDKPATH=/Applications/MaxMSP\ 4.5/MaxMSP-SDK/c74support
###############################################################
@@ -28,12 +28,24 @@ HELPPATH=/Applications/MaxMSP\ 4.5/max-help/flext
###############################################################
# user defined compiler flags
-# (check if they match your system!)
-UFLAGS=-faltivec -ffast-math
+UFLAGS += -ffast-math
# user defined optimization flags
-# (check if they match your system!)
-OFLAGS=-O3
-# optimizations for G4
-OFLAGS+=-mcpu=G4
+OFLAGS += -Os -ftree-vectorize
+
+# user defined debugging flags
+DFLAGS +=
+
+# architecture-specific flags (optional)
+UFLAGS_ppc += -maltivec -faltivec
+OFLAGS_ppc += -mtune=G4
+DFLAGS_ppc +=
+
+UFLAGS_i386 += -mmmx -msse -msse2 -msse3
+OFLAGS_i386 += -mtune=prescott
+DFLAGS_i386 +=
+
+# cross-compilation (optional)
+#ARCH=i386 ppc
+#OSXSDK=/Developer/SDKs/MacOSX10.4u.sdk
diff --git a/externals/grill/flext/buildsys/mac/max/gnumake-gcc.inc b/externals/grill/flext/buildsys/mac/max/gnumake-gcc.inc
index cd5740f4..89ddf2d1 100644
--- a/externals/grill/flext/buildsys/mac/max/gnumake-gcc.inc
+++ b/externals/grill/flext/buildsys/mac/max/gnumake-gcc.inc
@@ -1,6 +1,6 @@
DEFS += -DFLEXT_SYS=1
-INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes
+INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/jit-includes -I$(MAXSDKPATH)/msp-includes
LDFLAGS += -framework MaxAPI -framework MaxAudioAPI
LDFLAGS += -dynamiclib