aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win/max
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-07-19 23:08:33 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-07-19 23:08:33 +0000
commit2a58dfbcf6eb4fd72d19f46067d841a4aab873bf (patch)
tree4dd3c7725bae39ad31a5d49309cf4a96c6e16c16 /externals/grill/flext/buildsys/win/max
parent8994dac676a881dce818238d4519182a8bf635ea (diff)
more corrections to cygwin... seems to work now for Max/MSP as well
avoid problems with paths containing spaces enhancements for cygwin builds (working for PD now, but not for Max) svn path=/trunk/; revision=3362
Diffstat (limited to 'externals/grill/flext/buildsys/win/max')
-rw-r--r--externals/grill/flext/buildsys/win/max/config-cygwin.def51
-rw-r--r--externals/grill/flext/buildsys/win/max/gnumake-cygwin-ext.inc1
-rw-r--r--externals/grill/flext/buildsys/win/max/gnumake-cygwin-flext.inc6
-rw-r--r--externals/grill/flext/buildsys/win/max/gnumake-cygwin.inc10
-rw-r--r--externals/grill/flext/buildsys/win/max/gnumake-mingw.inc4
-rw-r--r--externals/grill/flext/buildsys/win/max/nmake-msvc.inc2
6 files changed, 71 insertions, 3 deletions
diff --git a/externals/grill/flext/buildsys/win/max/config-cygwin.def b/externals/grill/flext/buildsys/win/max/config-cygwin.def
new file mode 100644
index 00000000..a4562a73
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/max/config-cygwin.def
@@ -0,0 +1,51 @@
+# where is the Max/MSP application?
+MAXAPPPATH=/cygdrive/c/program\ files/MaxMSP\ 4.5
+
+# where are the Max/MSP common files?
+MAXCOMPATH=/cygdrive/c/program\ files/common\ files/Cycling\ \'74
+
+
+# where are the Max/MSP SDK header files?
+# you should have the latest version!
+MAXSDKPATH=$(MAXAPPPATH)/maxmspsdk_win/4.5\ headers/c74support
+
+###############################################################
+
+###############################################################
+
+# where do/should the flext headers reside/be built?
+FLEXTINC=$(MAXCOMPATH)/flext
+
+# where do/should the flext static libraries reside/be built?
+FLEXTLIB=$(FLEXTINC)
+
+# where do/should the flext shared libraries reside/be built?
+# (a good place is the MaxMSP program folder)
+FLEXTSHLIB=$(MAXAPPPATH)
+
+###############################################################
+
+# where should the external be built?
+# (path for temporary files)
+OUTPATH=max-cygwin
+
+# where should the external be installed?
+INSTPATH=$(MAXCOMPATH)/externals/flext
+
+# where should the initialization files be installed?
+INITPATH=$(MAXCOMPATH)/init
+
+# where should the help files be installed?
+HELPPATH=$(MAXAPPPATH)/max-help/flext
+
+###############################################################
+
+# user defined compiler flags
+# (check if they match your system!)
+UFLAGS=-msse -mfpmath=sse -ffast-math
+
+# user defined optimization flags
+# (check if they match your system!)
+OFLAGS=-O3
+# optimizations for Pentium 4
+OFLAGS+=-march=pentium4
diff --git a/externals/grill/flext/buildsys/win/max/gnumake-cygwin-ext.inc b/externals/grill/flext/buildsys/win/max/gnumake-cygwin-ext.inc
new file mode 100644
index 00000000..5df7e2f2
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/max/gnumake-cygwin-ext.inc
@@ -0,0 +1 @@
+EXT=mxe
diff --git a/externals/grill/flext/buildsys/win/max/gnumake-cygwin-flext.inc b/externals/grill/flext/buildsys/win/max/gnumake-cygwin-flext.inc
new file mode 100644
index 00000000..60cd079a
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/max/gnumake-cygwin-flext.inc
@@ -0,0 +1,6 @@
+ifdef SHARED
+EXT=dll
+else
+EXT=a
+endif
+
diff --git a/externals/grill/flext/buildsys/win/max/gnumake-cygwin.inc b/externals/grill/flext/buildsys/win/max/gnumake-cygwin.inc
new file mode 100644
index 00000000..743d0e79
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/max/gnumake-cygwin.inc
@@ -0,0 +1,10 @@
+DEFS += -DFLEXT_SYS=1
+
+# fpack-struct should align to 2 bytes... can't specify that...
+CFLAGS += -DWINVER=0x0501 -D_WIN32_WINNT=0x501
+
+INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes
+LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes
+
+# these are both in MAXSDKPATH
+SYSLIBS += -lMaxAPI -lMaxAudio
diff --git a/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc b/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
index ccf14536..26e234c8 100644
--- a/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
+++ b/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
@@ -1,10 +1,10 @@
DEFS += -DFLEXT_SYS=1
# fpack-struct should align to 2 bytes... can't specify that...
-CFLAGS += -fpack-struct -D_WIN32_WINNT=0x501
+CFLAGS += -DWINVER=0x0501 -D_WIN32_WINNT=0x501
INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes
LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes
# these are both in MAXSDKPATH
-LIBS += -lmaxapi -lmaxaudio
+LIBS += -lMaxAPI -lMaxAudio
diff --git a/externals/grill/flext/buildsys/win/max/nmake-msvc.inc b/externals/grill/flext/buildsys/win/max/nmake-msvc.inc
index 94cdc32e..c78b74aa 100644
--- a/externals/grill/flext/buildsys/win/max/nmake-msvc.inc
+++ b/externals/grill/flext/buildsys/win/max/nmake-msvc.inc
@@ -1,5 +1,5 @@
DEFS=$(DEFS) /DFLEXT_SYS=1
-CFLAGS=$(CFLAGS) /Zp2 /D_WIN32_WINNT=0x501
+CFLAGS=$(CFLAGS) /Zp2 /DWINVER=0x0501 /D_WIN32_WINNT=0x501
INCPATH=$(INCPATH) /I$(MAXSDKPATH)\max-includes /I$(MAXSDKPATH)\msp-includes
LIBPATH=$(LIBPATH) /LIBPATH:$(MAXSDKPATH)\max-includes /LIBPATH:$(MAXSDKPATH)\msp-includes