From 48c6d0ca4c82a190683380e45821159636080e51 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 19 Dec 2004 05:04:19 +0000 Subject: simplified make system updated make system svn path=/trunk/; revision=2412 --- externals/grill/flext/build/bmake-sub.mak | 25 +++++ externals/grill/flext/build/bmake.mak | 87 +++++++++++---- externals/grill/flext/build/build-bcc.bat | 3 + externals/grill/flext/build/build-cygwin.sh | 3 + externals/grill/flext/build/build-gcc.sh | 3 + externals/grill/flext/build/build-mingw.bat | 3 + externals/grill/flext/build/build-msvc.bat | 3 + externals/grill/flext/build/config-lnx-pd-gcc.def | 15 --- externals/grill/flext/build/config-mac-pd-gcc.def | 18 ---- .../grill/flext/build/config-win-max-mingw.def | 17 --- .../grill/flext/build/config-win-max-msvc.def | 17 --- externals/grill/flext/build/config-win-pd-bcc.def | 19 ---- .../grill/flext/build/config-win-pd-cygwin.def | 18 ---- .../grill/flext/build/config-win-pd-mingw.def | 15 --- externals/grill/flext/build/config-win-pd-msvc.def | 19 ---- externals/grill/flext/build/gnumake-sub.mak | 26 +++++ externals/grill/flext/build/gnumake.mak | 117 ++++++++++++++++----- externals/grill/flext/build/lnx/make-gcc.inc | 68 ++++++++++++ externals/grill/flext/build/lnx/pd/config-gcc.def | 15 +++ externals/grill/flext/build/lnx/pd/make-gcc.inc | 43 ++++++++ externals/grill/flext/build/mac/make-gcc.inc | 68 ++++++++++++ externals/grill/flext/build/mac/pd/config-gcc.def | 18 ++++ externals/grill/flext/build/mac/pd/make-gcc.inc | 43 ++++++++ externals/grill/flext/build/make-lnx-gen-gcc.inc | 68 ------------ externals/grill/flext/build/make-lnx-pd-gcc.inc | 43 -------- externals/grill/flext/build/make-mac-gen-gcc.inc | 68 ------------ externals/grill/flext/build/make-mac-pd-gcc.inc | 43 -------- externals/grill/flext/build/make-win-gen-bcc.inc | 83 --------------- .../grill/flext/build/make-win-gen-cygwin.inc | 68 ------------ externals/grill/flext/build/make-win-gen-mingw.inc | 69 ------------ externals/grill/flext/build/make-win-gen-msvc.inc | 68 ------------ externals/grill/flext/build/make-win-max-mingw.inc | 35 ------ externals/grill/flext/build/make-win-max-msvc.inc | 35 ------ externals/grill/flext/build/make-win-msvc.inc | 22 ---- externals/grill/flext/build/make-win-pd-bcc.inc | 35 ------ externals/grill/flext/build/make-win-pd-cygwin.inc | 43 -------- externals/grill/flext/build/make-win-pd-mingw.inc | 34 ------ externals/grill/flext/build/make-win-pd-msvc.inc | 34 ------ externals/grill/flext/build/nmake-sub.mak | 24 +++++ externals/grill/flext/build/nmake.mak | 83 ++++++++++++--- externals/grill/flext/build/win/make-bcc.inc | 85 +++++++++++++++ externals/grill/flext/build/win/make-cygwin.inc | 68 ++++++++++++ externals/grill/flext/build/win/make-mingw.inc | 68 ++++++++++++ externals/grill/flext/build/win/make-msvc.inc | 68 ++++++++++++ .../grill/flext/build/win/max/config-mingw.def | 17 +++ .../grill/flext/build/win/max/config-msvc.def | 17 +++ externals/grill/flext/build/win/max/make-mingw.inc | 35 ++++++ externals/grill/flext/build/win/max/make-msvc.inc | 35 ++++++ externals/grill/flext/build/win/pd/config-bcc.def | 19 ++++ .../grill/flext/build/win/pd/config-cygwin.def | 18 ++++ .../grill/flext/build/win/pd/config-mingw.def | 15 +++ externals/grill/flext/build/win/pd/config-msvc.def | 19 ++++ externals/grill/flext/build/win/pd/make-bcc.inc | 35 ++++++ externals/grill/flext/build/win/pd/make-cygwin.inc | 43 ++++++++ externals/grill/flext/build/win/pd/make-mingw.inc | 34 ++++++ externals/grill/flext/build/win/pd/make-msvc.inc | 34 ++++++ externals/grill/flext/buildext.bat | 41 ++++++++ externals/grill/flext/buildext.sh | 33 ++++++ 58 files changed, 1252 insertions(+), 950 deletions(-) create mode 100644 externals/grill/flext/build/bmake-sub.mak create mode 100644 externals/grill/flext/build/build-bcc.bat create mode 100644 externals/grill/flext/build/build-cygwin.sh create mode 100644 externals/grill/flext/build/build-gcc.sh create mode 100644 externals/grill/flext/build/build-mingw.bat create mode 100644 externals/grill/flext/build/build-msvc.bat delete mode 100644 externals/grill/flext/build/config-lnx-pd-gcc.def delete mode 100644 externals/grill/flext/build/config-mac-pd-gcc.def delete mode 100644 externals/grill/flext/build/config-win-max-mingw.def delete mode 100644 externals/grill/flext/build/config-win-max-msvc.def delete mode 100644 externals/grill/flext/build/config-win-pd-bcc.def delete mode 100644 externals/grill/flext/build/config-win-pd-cygwin.def delete mode 100644 externals/grill/flext/build/config-win-pd-mingw.def delete mode 100644 externals/grill/flext/build/config-win-pd-msvc.def create mode 100644 externals/grill/flext/build/gnumake-sub.mak create mode 100644 externals/grill/flext/build/lnx/make-gcc.inc create mode 100644 externals/grill/flext/build/lnx/pd/config-gcc.def create mode 100644 externals/grill/flext/build/lnx/pd/make-gcc.inc create mode 100644 externals/grill/flext/build/mac/make-gcc.inc create mode 100644 externals/grill/flext/build/mac/pd/config-gcc.def create mode 100644 externals/grill/flext/build/mac/pd/make-gcc.inc delete mode 100644 externals/grill/flext/build/make-lnx-gen-gcc.inc delete mode 100644 externals/grill/flext/build/make-lnx-pd-gcc.inc delete mode 100644 externals/grill/flext/build/make-mac-gen-gcc.inc delete mode 100644 externals/grill/flext/build/make-mac-pd-gcc.inc delete mode 100644 externals/grill/flext/build/make-win-gen-bcc.inc delete mode 100644 externals/grill/flext/build/make-win-gen-cygwin.inc delete mode 100644 externals/grill/flext/build/make-win-gen-mingw.inc delete mode 100644 externals/grill/flext/build/make-win-gen-msvc.inc delete mode 100644 externals/grill/flext/build/make-win-max-mingw.inc delete mode 100644 externals/grill/flext/build/make-win-max-msvc.inc delete mode 100644 externals/grill/flext/build/make-win-msvc.inc delete mode 100644 externals/grill/flext/build/make-win-pd-bcc.inc delete mode 100644 externals/grill/flext/build/make-win-pd-cygwin.inc delete mode 100644 externals/grill/flext/build/make-win-pd-mingw.inc delete mode 100644 externals/grill/flext/build/make-win-pd-msvc.inc create mode 100644 externals/grill/flext/build/nmake-sub.mak create mode 100644 externals/grill/flext/build/win/make-bcc.inc create mode 100644 externals/grill/flext/build/win/make-cygwin.inc create mode 100644 externals/grill/flext/build/win/make-mingw.inc create mode 100644 externals/grill/flext/build/win/make-msvc.inc create mode 100644 externals/grill/flext/build/win/max/config-mingw.def create mode 100644 externals/grill/flext/build/win/max/config-msvc.def create mode 100644 externals/grill/flext/build/win/max/make-mingw.inc create mode 100644 externals/grill/flext/build/win/max/make-msvc.inc create mode 100644 externals/grill/flext/build/win/pd/config-bcc.def create mode 100644 externals/grill/flext/build/win/pd/config-cygwin.def create mode 100644 externals/grill/flext/build/win/pd/config-mingw.def create mode 100644 externals/grill/flext/build/win/pd/config-msvc.def create mode 100644 externals/grill/flext/build/win/pd/make-bcc.inc create mode 100644 externals/grill/flext/build/win/pd/make-cygwin.inc create mode 100644 externals/grill/flext/build/win/pd/make-mingw.inc create mode 100644 externals/grill/flext/build/win/pd/make-msvc.inc create mode 100644 externals/grill/flext/buildext.bat create mode 100644 externals/grill/flext/buildext.sh (limited to 'externals') diff --git a/externals/grill/flext/build/bmake-sub.mak b/externals/grill/flext/build/bmake-sub.mak new file mode 100644 index 00000000..bf9fc6c5 --- /dev/null +++ b/externals/grill/flext/build/bmake-sub.mak @@ -0,0 +1,25 @@ +!include $(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt + +############################### + +# these are project specific + +# package info +!include build\package.txt + +# special package settings +!ifdef USRCONFIG +!include $(USRCONFIG) +!endif + +# package specific make stuff +!ifdef USRMAKE +!include $(USRMAKE) +!endif + +############################## + +# platform-specific make stuff +!include $(BUILDPATH)$(PLATFORM)\$(RTSYS)\make-$(COMPILER).inc +# general make stuff +!include $(BUILDPATH)$(PLATFORM)\make-$(COMPILER).inc diff --git a/externals/grill/flext/build/bmake.mak b/externals/grill/flext/build/bmake.mak index 5ee54fbb..1a3fc47d 100644 --- a/externals/grill/flext/build/bmake.mak +++ b/externals/grill/flext/build/bmake.mak @@ -1,29 +1,78 @@ -# PLATFORM - win +# required settings: +# +# PLATFORM - win/mac/lnx # RTSYS - pd/max -# COMPILER - bcc +# COMPILER - msvc/gcc/mingw/cygwin +# BUILDPATH including trailing \ -# this should be improved -BUILDPATH=..\flext\build +# package info +!include build\package.txt -# general settings -!include $(BUILDPATH)\config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt +SYSCONFIG=$(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt +SYSDEFAULT=$(BUILDPATH)$(PLATFORM)\$(RTSYS)\config-$(COMPILER).def -############################### -# these are project specific +OPTIONS=-f $(BUILDPATH)bmake-sub.mak -N \ + PLATFORM=$(PLATFORM) RTSYS=$(RTSYS) COMPILER=$(COMPILER) \ + BUILDPATH=$(BUILDPATH) -# special package settings -!include config-$(PLATFORM)-$(COMPILER).txt +!ifdef HAVECONFIG +USRCONFIG=config.txt +USRDEFAULT=build\config-$(PLATFORM).def +OPTIONS=$(OPTIONS) USRCONFIG=$(USRCONFIG) +!endif -# package specific make stuff -!include makefile-$(PLATFORM)-$(COMPILER).txt +!ifdef HAVEMAKE +USRMAKE=build\makefile-$(PLATFORM)-$(COMPILER).inc +OPTIONS=$(OPTIONS) USRMAKE=$(USRMAKE) +!endif -# package info -!include make-files.txt -############################## +all: config + $(MAKE) $(OPTIONS) all + +all-debug: config + $(MAKE) $(OPTIONS) DEBUG=1 $@ + +all-shared: config + $(MAKE) $(OPTIONS) SHARED=1 $@ + +all-shared-debug: config + $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 $@ + +clean install: + $(MAKE) $(OPTIONS) $@ + + +config: $(USRMAKE) $(SYSCONFIG) $(USRCONFIG) + + +.precious: $(SYSCONFIG) $(USRCONFIG) + +$(SYSCONFIG): $(SYSDEFAULT) + @copy $** $@ + @echo ------------------------------------------------------------------------- + @echo A default system configuration file has been created. + @echo Please edit $(SYSCONFIG) + @echo to match your platform and start again. + @echo ------------------------------------------------------------------------- + @exit 1 + +!ifdef HAVECONFIG +$(USRCONFIG): $(USRDEFAULT) + @copy $** $@ + @echo ------------------------------------------------------------------------- + @echo A default package configuration file has been created. + @echo Please edit $(USRCONFIG) and start again. + @echo ------------------------------------------------------------------------- + @exit 1 +!endif -# platform-specific make stuff -!include $(BUILDPATH)\make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc -# general make stuff -!include $(BUILDPATH)\make-$(PLATFORM)-gen-$(COMPILER).inc +!ifdef HAVEMAKE +$(USRMAKE): + @echo ------------------------------------------------------------------------- + @echo Your combination of platform, system and compiler is not supported yet. + @echo Required file: $(USRMAKE) + @echo ------------------------------------------------------------------------- + @exit 1 +!endif diff --git a/externals/grill/flext/build/build-bcc.bat b/externals/grill/flext/build/build-bcc.bat new file mode 100644 index 00000000..00e48b72 --- /dev/null +++ b/externals/grill/flext/build/build-bcc.bat @@ -0,0 +1,3 @@ +@set build=%~dp0 + +make -f %build%bmake.mak -N PLATFORM=%1 RTSYS=%2 COMPILER=bcc BUILDPATH=%build% %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/flext/build/build-cygwin.sh b/externals/grill/flext/build/build-cygwin.sh new file mode 100644 index 00000000..df3b4f7b --- /dev/null +++ b/externals/grill/flext/build/build-cygwin.sh @@ -0,0 +1,3 @@ +build=${0%/*}/ + +make -f ${build}gnumake.mak PLATFORM=$1 RTSYS=$2 COMPILER=cygwin BUILDPATH=${build} $3 $4 $5 $6 $7 $8 $9 diff --git a/externals/grill/flext/build/build-gcc.sh b/externals/grill/flext/build/build-gcc.sh new file mode 100644 index 00000000..3fffd918 --- /dev/null +++ b/externals/grill/flext/build/build-gcc.sh @@ -0,0 +1,3 @@ +build=${0%/*}/ + +make -f ${build}gnumake.mak PLATFORM=$1 RTSYS=$2 COMPILER=gcc BUILDPATH=${build} $3 $4 $5 $6 $7 $8 $9 diff --git a/externals/grill/flext/build/build-mingw.bat b/externals/grill/flext/build/build-mingw.bat new file mode 100644 index 00000000..2c946bff --- /dev/null +++ b/externals/grill/flext/build/build-mingw.bat @@ -0,0 +1,3 @@ +@set build=%~dp0 + +mingw32-make -f %build%gnumake.mak PLATFORM=%1 RTSYS=%2 COMPILER=mingw BUILDPATH=%build% %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/flext/build/build-msvc.bat b/externals/grill/flext/build/build-msvc.bat new file mode 100644 index 00000000..c50ed8e9 --- /dev/null +++ b/externals/grill/flext/build/build-msvc.bat @@ -0,0 +1,3 @@ +@set build=%~dp0 + +nmake -f %build%nmake.mak PLATFORM=%1 RTSYS=%2 COMPILER=msvc BUILDPATH=%build% %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/flext/build/config-lnx-pd-gcc.def b/externals/grill/flext/build/config-lnx-pd-gcc.def deleted file mode 100644 index 56ddc5d8..00000000 --- a/externals/grill/flext/build/config-lnx-pd-gcc.def +++ /dev/null @@ -1,15 +0,0 @@ -# where is the PD source package? -PDPATH=/usr/local/src/pd-0.38-0test10 - -# where should the external be installed? -INSTPATH=/usr/local/lib/pd/extra - -# where do the flext headers and libraries reside? -FLEXTPATH=/usr/local/lib/pd/flext - -# where should the external be built? -OUTPATH=pd-linux - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/config-mac-pd-gcc.def b/externals/grill/flext/build/config-mac-pd-gcc.def deleted file mode 100644 index 6409e901..00000000 --- a/externals/grill/flext/build/config-mac-pd-gcc.def +++ /dev/null @@ -1,18 +0,0 @@ -# where is the PD installation? -PDPATH=/usr/local/lib/pd - -# where is the PD executable? -PDBIN=/usr/local/bin/pd - -# where should the external be installed? -INSTPATH=$(PDPATH)/extra - -# where do the flext headers and libraries reside? -FLEXTPATH=$(PDPATH)/flext - -# where should the external be built? -OUTPATH=pd-darwin - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=-O2 -mcpu=G4 -malign-natural -maltivec -faltivec diff --git a/externals/grill/flext/build/config-win-max-mingw.def b/externals/grill/flext/build/config-win-max-mingw.def deleted file mode 100644 index d6bbd4dc..00000000 --- a/externals/grill/flext/build/config-win-max-mingw.def +++ /dev/null @@ -1,17 +0,0 @@ -# where are the Max/MSP SDK header files? -# you should have the latest version! -MAXSDKPATH="c:/data/prog/audio/maxmspsdk_win/4.5 headers/c74support" - -# where should the external be installed? -INSTPATH="%CommonProgramFiles%/Cycling '74/externals/flext" - -# where do the flext headers and libraries reside? -FLEXTPATH="%CommonProgramFiles%/Cycling '74/flext" - -# where should the external be built? -# (path for temporary files) -OUTPATH=max-mingw - -# some user-definable flags -# (check if they match your system!) -OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/config-win-max-msvc.def b/externals/grill/flext/build/config-win-max-msvc.def deleted file mode 100644 index a7db2d2c..00000000 --- a/externals/grill/flext/build/config-win-max-msvc.def +++ /dev/null @@ -1,17 +0,0 @@ -# where are the Max/MSP SDK header files? -# you should have the latest version! -MAXSDKPATH="c:\data\prog\audio\maxmspsdk_win\4.5 headers\c74support" - -# where should the external be installed? -INSTPATH="%CommonProgramFiles%\Cycling '74\externals\flext" - -# where do the flext headers and libraries reside? -FLEXTPATH="%CommonProgramFiles%\Cycling '74\flext" - -# where should the external be built? -# (path for temporary files) -OUTPATH=max-msvc - -# some user-definable flags -# (check if they match your system!) -OFLAGS=/G6 /Ox /arch:SSE diff --git a/externals/grill/flext/build/config-win-pd-bcc.def b/externals/grill/flext/build/config-win-pd-bcc.def deleted file mode 100644 index b93cece3..00000000 --- a/externals/grill/flext/build/config-win-pd-bcc.def +++ /dev/null @@ -1,19 +0,0 @@ -# where is PD? -PDPATH=c:\programme\audio\pd - -# where should the external be installed? -INSTPATH=$(PDPATH)\extra - -# where do the flext headers and libraries reside? -FLEXTPATH=$(PDPATH)\flext - -# where is BorlandC++? -BCCPATH=C:\Programme\prog\bcc55 - -# where should the external be built? -OUTPATH=pd-bcc - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=-6 -O2 -OS -ff -d - diff --git a/externals/grill/flext/build/config-win-pd-cygwin.def b/externals/grill/flext/build/config-win-pd-cygwin.def deleted file mode 100644 index 1c92fe66..00000000 --- a/externals/grill/flext/build/config-win-pd-cygwin.def +++ /dev/null @@ -1,18 +0,0 @@ -# where is PD? -# (it seems like cygwin compilation is only working if -# there are no pthread.h and sched.h in the PD src subfolder -# - these are provided by cygwin ) -PDPATH=/cygdrive/c/programme/audio/pd - -# where should the external be installed? -INSTPATH=$(PDPATH)/extra - -# where do the flext headers and libraries reside? -FLEXTPATH=$(PDPATH)/flext - -# where should the external be built? -OUTPATH=pd-cygwin - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/config-win-pd-mingw.def b/externals/grill/flext/build/config-win-pd-mingw.def deleted file mode 100644 index a721d45d..00000000 --- a/externals/grill/flext/build/config-win-pd-mingw.def +++ /dev/null @@ -1,15 +0,0 @@ -# where is PD? -PDPATH=c:/programme/audio/pd - -# where should the external be installed? -INSTPATH=$(PDPATH)/extra - -# where do the flext headers and libraries reside? -FLEXTPATH=$(PDPATH)/flext - -# where should the external be built? -OUTPATH=pd-mingw - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/config-win-pd-msvc.def b/externals/grill/flext/build/config-win-pd-msvc.def deleted file mode 100644 index aa4c5feb..00000000 --- a/externals/grill/flext/build/config-win-pd-msvc.def +++ /dev/null @@ -1,19 +0,0 @@ -# where is PD? -PDPATH=c:\programme\audio\pd - -# where should the external be installed? -INSTPATH=$(PDPATH)\extra - -# where do the flext headers and libraries reside? -FLEXTPATH=$(PDPATH)\flext - -# where is MS VC++? -# (not necessary if the build is run with the compiler environment) -# MSVCPATH=C:\Programme\Microsoft Visual Studio .NET 2003\Vc7 - -# where should the external be built? -OUTPATH=pd-msvc - -# user defined compiler flags -# (check if they match your system!) -OFLAGS=/G6 /Ox /arch:SSE diff --git a/externals/grill/flext/build/gnumake-sub.mak b/externals/grill/flext/build/gnumake-sub.mak new file mode 100644 index 00000000..c4b1f0cf --- /dev/null +++ b/externals/grill/flext/build/gnumake-sub.mak @@ -0,0 +1,26 @@ +# system settings +include $(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt + +############################### + +# these are project specific + +# package info +include build/package.txt + +# special settings +ifdef USRCONFIG +include $(USRCONFIG) +endif + +# package specific make stuff +ifdef USRMAKE +include $(USRMAKE) +endif + +############################## + +# platform-specific make stuff +include $(BUILDPATH)$(PLATFORM)/$(RTSYS)/make-$(COMPILER).inc +# general make stuff +include $(BUILDPATH)$(PLATFORM)/make-$(COMPILER).inc diff --git a/externals/grill/flext/build/gnumake.mak b/externals/grill/flext/build/gnumake.mak index 9754633d..48283692 100644 --- a/externals/grill/flext/build/gnumake.mak +++ b/externals/grill/flext/build/gnumake.mak @@ -1,28 +1,89 @@ -# PLATFORM - win/mac/lnx -# RTSYS - pd/max -# COMPILER - msvc/gcc/mingw/cygwin - -# this should be improved -BUILDPATH=../flext/build - -include $(BUILDPATH)/config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt - -############################### - -# these are project specific - -# special settings -include config-$(PLATFORM)-$(COMPILER).txt - -# package specific make stuff -include makefile-$(PLATFORM)-$(COMPILER).txt - -# package info -include make-files.txt - -############################## - -# platform-specific make stuff -include $(BUILDPATH)/make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc -# general make stuff -include $(BUILDPATH)/make-$(PLATFORM)-gen-$(COMPILER).inc +# required settings: +# +# PLATFORM - win/mac/lnx +# RTSYS - pd/max +# COMPILER - msvc/gcc/mingw/cygwin +# BUILDPATH including trailing / + +# package info +include build/package.txt + + +ifeq ($(PLATFORM),win) + # substitute eventual \ by / + UBUILDPATH=$(subst \,/,$(BUILDPATH)) +else + UBUILDPATH=$(BUILDPATH) +endif + + +SYSCONFIG=$(UBUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt +SYSDEFAULT=$(UBUILDPATH)$(PLATFORM)/$(RTSYS)/config-$(COMPILER).def + + +OPTIONS=-f $(UBUILDPATH)gnumake-sub.mak \ + PLATFORM=$(PLATFORM) RTSYS=$(RTSYS) COMPILER=$(COMPILER) \ + BUILDPATH=$(UBUILDPATH) + + +ifdef HAVECONFIG +USRCONFIG=config.txt +USRDEFAULT=build/config-$(PLATFORM).def +OPTIONS+=USRCONFIG=$(USRCONFIG) +endif + +ifdef HAVEMAKE +USRMAKE=build/makefile-$(PLATFORM)-$(COMPILER).inc +OPTIONS+=USRMAKE=$(USRMAKE) +endif + + +all: config + $(MAKE) $(OPTIONS) all + +all-debug: config + $(MAKE) $(OPTIONS) DEBUG=1 $@ + +all-shared: config + $(MAKE) $(OPTIONS) SHARED=1 $@ + +all-shared-debug: config + $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 $@ + +clean install: + $(MAKE) $(OPTIONS) $@ + + +config: $(USRMAKE) $(SYSCONFIG) $(USRCONFIG) + + +.precious: $(SYSCONFIG) $(USRCONFIG) + +$(SYSCONFIG): $(SYSDEFAULT) + @cp $< $@ + @echo ------------------------------------------------------------------------- + @echo A default system configuration file has been created. + @echo Please edit $(SYSCONFIG) + @echo to match your platform and start again. + @echo ------------------------------------------------------------------------- + @false + +ifdef HAVECONFIG +$(USRCONFIG): $(USRDEFAULT) + @cp $< $@ + @echo ------------------------------------------------------------------------- + @echo A default package configuration file has been created. + @echo Please edit $(USRCONFIG) and start again. + @echo ------------------------------------------------------------------------- + @false +endif + +ifdef HAVEMAKE +$(USRMAKE): + @echo ------------------------------------------------------------------------- + @echo Your combination of platform, system and compiler is not supported yet. + @echo Required file: $(USRMAKE) + @echo ------------------------------------------------------------------------- + @false +endif + diff --git a/externals/grill/flext/build/lnx/make-gcc.inc b/externals/grill/flext/build/lnx/make-gcc.inc new file mode 100644 index 00000000..3c474864 --- /dev/null +++ b/externals/grill/flext/build/lnx/make-gcc.inc @@ -0,0 +1,68 @@ +LDFLAGS += -shared -Wl,-x + +ifdef DEBUG +CFLAGS += -g -D_DEBUG +else +CFLAGS += $(OFLAGS) -DNDEBUG +LDFLAGS += -Wl,-S +endif + +############################################## + +INCPATH += -I$(FLEXTPATH) +LIBPATH += -L$(FLEXTPATH) + +ifdef SHARED +# --- shared --- +DEFS += -DFLEXT_SHARED + +else +ifdef THREADED +# --- static multi-threaded --- +DEFS += -DFLEXT_THREADS + +else +# --- static single-threaded --- + +endif +endif + +############################################## + +TARGET=$(OUTPATH)/$(NAME).$(EXT) + +CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) +CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) +COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) +CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) + +# default target +all: $(OUTPATH) $(TARGET) + +$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) + touch $@ + +$(OUTPATH): + mkdir $(OUTPATH) + +$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(OUTPATH)/%.o : $(SRCDIR)/%.c + $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(TARGET) : $(COBJS) $(CPPOBJS) + $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) + chmod 755 $@ + +$(INSTPATH): + mkdir $(INSTPATH) + +install:: $(INSTPATH) + +install:: $(TARGET) + install $^ $(INSTPATH) + +.PHONY: clean +clean: + $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/lnx/pd/config-gcc.def b/externals/grill/flext/build/lnx/pd/config-gcc.def new file mode 100644 index 00000000..56ddc5d8 --- /dev/null +++ b/externals/grill/flext/build/lnx/pd/config-gcc.def @@ -0,0 +1,15 @@ +# where is the PD source package? +PDPATH=/usr/local/src/pd-0.38-0test10 + +# where should the external be installed? +INSTPATH=/usr/local/lib/pd/extra + +# where do the flext headers and libraries reside? +FLEXTPATH=/usr/local/lib/pd/flext + +# where should the external be built? +OUTPATH=pd-linux + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/lnx/pd/make-gcc.inc b/externals/grill/flext/build/lnx/pd/make-gcc.inc new file mode 100644 index 00000000..2db3fe3d --- /dev/null +++ b/externals/grill/flext/build/lnx/pd/make-gcc.inc @@ -0,0 +1,43 @@ +DEFS += -DFLEXT_SYS=2 + +INCPATH += -I$(PDPATH)/src +LIBPATH += -L$(PDPATH)/bin + +LDFLAGS += + +LIBS += + +EXT=pd_linux + +######################################### + +ifdef SHARED +# --- shared --- + +ifdef DEBUG +LIBS += -lflext_d +else +LIBS += -lflext +endif + +else +ifdef THREADED +# --- static multi-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_td.a +else +LIBS += $(FLEXTPATH)/libflext_t.a +endif + +else +# --- static single-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_d.a +else +LIBS += $(FLEXTPATH)/libflext.a +endif + +endif +endif diff --git a/externals/grill/flext/build/mac/make-gcc.inc b/externals/grill/flext/build/mac/make-gcc.inc new file mode 100644 index 00000000..ffb49720 --- /dev/null +++ b/externals/grill/flext/build/mac/make-gcc.inc @@ -0,0 +1,68 @@ +LDFLAGS += -Wl,-x -framework ApplicationServices -framework vecLib + +ifdef DEBUG +CFLAGS += -g -D_DEBUG +else +CFLAGS += $(OFLAGS) -DNDEBUG +LDFLAGS += -Wl,-S +endif + +############################################## + +INCPATH += -I$(FLEXTPATH) +LIBPATH += -L$(FLEXTPATH) + +ifdef SHARED +# --- shared --- +DEFS += -DFLEXT_SHARED + +else +ifdef THREADED +# --- static multi-threaded --- +DEFS += -DFLEXT_THREADS + +else +# --- static single-threaded --- + +endif +endif + +############################################## + +TARGET=$(OUTPATH)/$(NAME).$(EXT) + +CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) +CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) +COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) +CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) + +# default target +all: $(OUTPATH) $(TARGET) + +$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) + touch $@ + +$(OUTPATH): + mkdir $(OUTPATH) + +$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(OUTPATH)/%.o : $(SRCDIR)/%.c + $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(TARGET) : $(COBJS) $(CPPOBJS) + $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) + chmod 755 $@ + +$(INSTPATH): + mkdir $(INSTPATH) + +install:: $(INSTPATH) + +install:: $(TARGET) + install $^ $(INSTPATH) + +.PHONY: clean +clean: + $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/mac/pd/config-gcc.def b/externals/grill/flext/build/mac/pd/config-gcc.def new file mode 100644 index 00000000..6409e901 --- /dev/null +++ b/externals/grill/flext/build/mac/pd/config-gcc.def @@ -0,0 +1,18 @@ +# where is the PD installation? +PDPATH=/usr/local/lib/pd + +# where is the PD executable? +PDBIN=/usr/local/bin/pd + +# where should the external be installed? +INSTPATH=$(PDPATH)/extra + +# where do the flext headers and libraries reside? +FLEXTPATH=$(PDPATH)/flext + +# where should the external be built? +OUTPATH=pd-darwin + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=-O2 -mcpu=G4 -malign-natural -maltivec -faltivec diff --git a/externals/grill/flext/build/mac/pd/make-gcc.inc b/externals/grill/flext/build/mac/pd/make-gcc.inc new file mode 100644 index 00000000..560c6ebb --- /dev/null +++ b/externals/grill/flext/build/mac/pd/make-gcc.inc @@ -0,0 +1,43 @@ +DEFS += -DFLEXT_SYS=2 + +INCPATH += -I$(PDPATH)/src +LIBPATH += -L$(PDPATH)/bin + +LDFLAGS += -bundle -bundle_loader $(PDBIN) + +LIBS += + +EXT=pd_darwin + +######################################### + +ifdef SHARED +# --- shared --- + +ifdef DEBUG +LIBS += -lflext_d +else +LIBS += -lflext +endif + +else +ifdef THREADED +# --- static multi-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_td.a +else +LIBS += $(FLEXTPATH)/libflext_t.a +endif + +else +# --- static single-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_d.a +else +LIBS += $(FLEXTPATH)/libflext.a +endif + +endif +endif diff --git a/externals/grill/flext/build/make-lnx-gen-gcc.inc b/externals/grill/flext/build/make-lnx-gen-gcc.inc deleted file mode 100644 index 3c474864..00000000 --- a/externals/grill/flext/build/make-lnx-gen-gcc.inc +++ /dev/null @@ -1,68 +0,0 @@ -LDFLAGS += -shared -Wl,-x - -ifdef DEBUG -CFLAGS += -g -D_DEBUG -else -CFLAGS += $(OFLAGS) -DNDEBUG -LDFLAGS += -Wl,-S -endif - -############################################## - -INCPATH += -I$(FLEXTPATH) -LIBPATH += -L$(FLEXTPATH) - -ifdef SHARED -# --- shared --- -DEFS += -DFLEXT_SHARED - -else -ifdef THREADED -# --- static multi-threaded --- -DEFS += -DFLEXT_THREADS - -else -# --- static single-threaded --- - -endif -endif - -############################################## - -TARGET=$(OUTPATH)/$(NAME).$(EXT) - -CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) -CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) -COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) -CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) - -# default target -all: $(OUTPATH) $(TARGET) - -$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) - touch $@ - -$(OUTPATH): - mkdir $(OUTPATH) - -$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(OUTPATH)/%.o : $(SRCDIR)/%.c - $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(TARGET) : $(COBJS) $(CPPOBJS) - $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) - chmod 755 $@ - -$(INSTPATH): - mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - install $^ $(INSTPATH) - -.PHONY: clean -clean: - $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/make-lnx-pd-gcc.inc b/externals/grill/flext/build/make-lnx-pd-gcc.inc deleted file mode 100644 index 2db3fe3d..00000000 --- a/externals/grill/flext/build/make-lnx-pd-gcc.inc +++ /dev/null @@ -1,43 +0,0 @@ -DEFS += -DFLEXT_SYS=2 - -INCPATH += -I$(PDPATH)/src -LIBPATH += -L$(PDPATH)/bin - -LDFLAGS += - -LIBS += - -EXT=pd_linux - -######################################### - -ifdef SHARED -# --- shared --- - -ifdef DEBUG -LIBS += -lflext_d -else -LIBS += -lflext -endif - -else -ifdef THREADED -# --- static multi-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_td.a -else -LIBS += $(FLEXTPATH)/libflext_t.a -endif - -else -# --- static single-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_d.a -else -LIBS += $(FLEXTPATH)/libflext.a -endif - -endif -endif diff --git a/externals/grill/flext/build/make-mac-gen-gcc.inc b/externals/grill/flext/build/make-mac-gen-gcc.inc deleted file mode 100644 index ffb49720..00000000 --- a/externals/grill/flext/build/make-mac-gen-gcc.inc +++ /dev/null @@ -1,68 +0,0 @@ -LDFLAGS += -Wl,-x -framework ApplicationServices -framework vecLib - -ifdef DEBUG -CFLAGS += -g -D_DEBUG -else -CFLAGS += $(OFLAGS) -DNDEBUG -LDFLAGS += -Wl,-S -endif - -############################################## - -INCPATH += -I$(FLEXTPATH) -LIBPATH += -L$(FLEXTPATH) - -ifdef SHARED -# --- shared --- -DEFS += -DFLEXT_SHARED - -else -ifdef THREADED -# --- static multi-threaded --- -DEFS += -DFLEXT_THREADS - -else -# --- static single-threaded --- - -endif -endif - -############################################## - -TARGET=$(OUTPATH)/$(NAME).$(EXT) - -CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) -CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) -COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) -CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) - -# default target -all: $(OUTPATH) $(TARGET) - -$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) - touch $@ - -$(OUTPATH): - mkdir $(OUTPATH) - -$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(OUTPATH)/%.o : $(SRCDIR)/%.c - $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(TARGET) : $(COBJS) $(CPPOBJS) - $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) - chmod 755 $@ - -$(INSTPATH): - mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - install $^ $(INSTPATH) - -.PHONY: clean -clean: - $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/make-mac-pd-gcc.inc b/externals/grill/flext/build/make-mac-pd-gcc.inc deleted file mode 100644 index 560c6ebb..00000000 --- a/externals/grill/flext/build/make-mac-pd-gcc.inc +++ /dev/null @@ -1,43 +0,0 @@ -DEFS += -DFLEXT_SYS=2 - -INCPATH += -I$(PDPATH)/src -LIBPATH += -L$(PDPATH)/bin - -LDFLAGS += -bundle -bundle_loader $(PDBIN) - -LIBS += - -EXT=pd_darwin - -######################################### - -ifdef SHARED -# --- shared --- - -ifdef DEBUG -LIBS += -lflext_d -else -LIBS += -lflext -endif - -else -ifdef THREADED -# --- static multi-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_td.a -else -LIBS += $(FLEXTPATH)/libflext_t.a -endif - -else -# --- static single-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_d.a -else -LIBS += $(FLEXTPATH)/libflext.a -endif - -endif -endif diff --git a/externals/grill/flext/build/make-win-gen-bcc.inc b/externals/grill/flext/build/make-win-gen-bcc.inc deleted file mode 100644 index b9fcabec..00000000 --- a/externals/grill/flext/build/make-win-gen-bcc.inc +++ /dev/null @@ -1,83 +0,0 @@ -INCPATH=$(INCPATH) -I$(FLEXTPATH) -LIBPATH=$(LIBPATH) -L$(FLEXTPATH) - -!ifdef BCCPATH -INCPATH=$(INCPATH) -I$(BCCPATH)\include -LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib -!endif - -LIBS=$(LIBS) cw32.lib import32.lib C0D32.OBJ -CFLAGS=$(CFLAGS) -tWD -tWM -w-8004 -w-8027 -w-8057 -LDFLAGS=$(LDFLAGS) /C /Tpd - -############################################## - -# use multithreaded static libraries -!ifdef DEBUG -CFLAGS=$(CFLAGS) -v -D_DEBUG -LDFLAGS=$(LDFLAGS) /v -!else -CFLAGS=$(CFLAGS) $(OFLAGS) -DNDEBUG -!endif - -!ifdef SHARED -# --- shared --- -DEFS=$(DEFS) -DFLEXT_SHARED - -!else -!ifdef THREADED -# --- static multi-threaded --- -DEFS=$(DEFS) -DFLEXT_THREADS - -!else -# --- static single-threaded --- - -!endif -!endif - -############################################## - -TARGET=$(OUTPATH)\$(NAME).$(EXT) - -# default target -all: $(OUTPATH) print $(TARGET) - -# convert both *.c and *.cpp -OBJSTMP= $(SRCS:.c=.obj) -OBJS= $(OBJSTMP:.objpp=.obj) - -print: - echo $(OBJS) - -$(OUTPATH): - @-if not exist $< mkdir $< - -SETUPFUNCTION=$(NAME)_setup - -$(OUTPATH)\$(NAME).def: - @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $< -# this next line fixes a strange problem with implib - lacking underscore?! - @echo IMPORTS _rtext_retext=PD.rtext_retext >> $< - -{$(SRCDIR)}.cpp{}.obj: - bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< - -{$(SRCDIR)}.c{}.obj: - bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< - -$(TARGET) :: $(OUTPATH) $(OUTPATH)\$(NAME).def - -$(TARGET) :: $(OBJS) - cd $(OUTPATH) - ilink32 $(LDFLAGS) $(LIBPATH) $** ,..\$<,,$(LIBS),$(NAME).def - cd .. - -# remove build -clean: - -del /q $(OUTPATH) > nul - -rmdir $(OUTPATH) > nul - -# install build -install: - @-if not exist $(INSTPATH) mkdir $(INSTPATH) - copy $(TARGET) $(INSTPATH) > nul diff --git a/externals/grill/flext/build/make-win-gen-cygwin.inc b/externals/grill/flext/build/make-win-gen-cygwin.inc deleted file mode 100644 index 3c474864..00000000 --- a/externals/grill/flext/build/make-win-gen-cygwin.inc +++ /dev/null @@ -1,68 +0,0 @@ -LDFLAGS += -shared -Wl,-x - -ifdef DEBUG -CFLAGS += -g -D_DEBUG -else -CFLAGS += $(OFLAGS) -DNDEBUG -LDFLAGS += -Wl,-S -endif - -############################################## - -INCPATH += -I$(FLEXTPATH) -LIBPATH += -L$(FLEXTPATH) - -ifdef SHARED -# --- shared --- -DEFS += -DFLEXT_SHARED - -else -ifdef THREADED -# --- static multi-threaded --- -DEFS += -DFLEXT_THREADS - -else -# --- static single-threaded --- - -endif -endif - -############################################## - -TARGET=$(OUTPATH)/$(NAME).$(EXT) - -CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) -CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) -COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) -CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) - -# default target -all: $(OUTPATH) $(TARGET) - -$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) - touch $@ - -$(OUTPATH): - mkdir $(OUTPATH) - -$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(OUTPATH)/%.o : $(SRCDIR)/%.c - $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(TARGET) : $(COBJS) $(CPPOBJS) - $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) - chmod 755 $@ - -$(INSTPATH): - mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - install $^ $(INSTPATH) - -.PHONY: clean -clean: - $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/make-win-gen-mingw.inc b/externals/grill/flext/build/make-win-gen-mingw.inc deleted file mode 100644 index 50d3c25c..00000000 --- a/externals/grill/flext/build/make-win-gen-mingw.inc +++ /dev/null @@ -1,69 +0,0 @@ -LDFLAGS += -shared -Wl,-x - -ifdef DEBUG -CFLAGS += -g -D_DEBUG -else -CFLAGS += $(OFLAGS) -DNDEBUG -LDFLAGS += -Wl,-S -endif - -############################################## - -INCPATH += -I$(FLEXTPATH) -LIBPATH += -L$(FLEXTPATH) - -ifdef SHARED -# --- shared --- -DEFS += -DFLEXT_SHARED - -else -ifdef THREADED -# --- static multi-threaded --- -DEFS += -DFLEXT_THREADS - -else -# --- static single-threaded --- - -endif -endif - -############################################## - -TARGET=$(OUTPATH)/$(NAME).$(EXT) - -CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) -CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) -COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) -CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) - - -# default target -all: $(OUTPATH) $(TARGET) - -#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) -# touch $@ - -$(OUTPATH): - mkdir $(OUTPATH) - -$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(OUTPATH)/%.o : $(SRCDIR)/%.c - $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ - -$(TARGET) : $(COBJS) $(CPPOBJS) - $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) - chmod 755 $@ - -$(INSTPATH): - mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - $(CP) $^ $(INSTPATH) - -.PHONY: clean -clean: - $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/make-win-gen-msvc.inc b/externals/grill/flext/build/make-win-gen-msvc.inc deleted file mode 100644 index 1fc06c8f..00000000 --- a/externals/grill/flext/build/make-win-gen-msvc.inc +++ /dev/null @@ -1,68 +0,0 @@ -INCPATH=$(INCPATH) /I$(FLEXTPATH) -LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTPATH) - -!ifdef MSVCPATH -INCPATH=$(INCPATH) /I$(MSVCPATH)\include -LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib -!endif - -# for VC7 - enable exception handling -CFLAGS=$(CFLAGS) /EHsc - -############################################## - -# use multithreaded static libraries -!ifdef DEBUG -CFLAGS=$(CFLAGS) /D_DEBUG /DMTd -LDFLAGS=$(LDFLAGS) /DEBUG -!else -CFLAGS=$(CFLAGS) $(OFLAGS) /DNDEBUG /DMT -LDFLAGS=$(LDFLAGS) /INCREMENTAL:NO -!endif - -!ifdef SHARED -# --- shared --- -DEFS=$(DEFS) /DFLEXT_SHARED - -!elseifdef THREADED -# --- static multi-threaded --- -DEFS=$(DEFS) /DFLEXT_THREADS - -!else -# --- static single-threaded --- - -!endif - -############################################## - -# default target -all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT) - -OBJS= $(SRCS:.c=.obj) -OBJS= $(OBJS:.objpp=.obj) - -$(OUTPATH): - -mkdir $(OUTPATH) > nul - -{$(SRCDIR)}.cpp{}.obj: - cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@ - -{$(SRCDIR)}.c{}.obj: - cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@ - -$(OUTPATH)\$(NAME).$(EXT): $(OBJS) - cd $(OUTPATH) - link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) $** $(LIBS) $(LIBPATH) - @-del *.exp - @-del *.lib - cd .. - -# remove build -clean: - -del /q $(OUTPATH) > nul - -rmdir $(OUTPATH) > nul - -# install build -install: - @-if not exist $(INSTPATH) mkdir $(INSTPATH) - copy $(OUTPATH)\$(NAME).$(EXT) $(INSTPATH) > nul diff --git a/externals/grill/flext/build/make-win-max-mingw.inc b/externals/grill/flext/build/make-win-max-mingw.inc deleted file mode 100644 index c34825f8..00000000 --- a/externals/grill/flext/build/make-win-max-mingw.inc +++ /dev/null @@ -1,35 +0,0 @@ -DEFS += -DFLEXT_SYS=1 -CFLAGS += -fpack-struct=2 - -INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes -LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes - -# these are both in PDPATH -LIBS += -lmaxapi -lmaxaudio - -EXT=mxe - -######################################### - -ifdef SHARED -# --- shared --- - -elseifdef THREADED -# --- static multi-threaded --- - -ifdef DEBUG -LIBS += -lflext_td-maxwin -else -LIBS += -lflext_t-maxwin -endif - -else -# --- static single-threaded --- - -ifdef DEBUG -LIBS += -lflext_d-maxwin -else -LIBS += -lflext-maxwin -endif - -endif diff --git a/externals/grill/flext/build/make-win-max-msvc.inc b/externals/grill/flext/build/make-win-max-msvc.inc deleted file mode 100644 index 636029fa..00000000 --- a/externals/grill/flext/build/make-win-max-msvc.inc +++ /dev/null @@ -1,35 +0,0 @@ -DEFS=$(DEFS) /DFLEXT_SYS=1 -CFLAGS=$(CFLAGS) /Zp2 - -INCPATH=$(INCPATH) /I$(MAXSDKPATH)\max-includes /I$(MAXSDKPATH)\msp-includes -LIBPATH=$(LIBPATH) /LIBPATH:$(MAXSDKPATH)\max-includes /LIBPATH:$(MAXSDKPATH)\msp-includes - -# these are both in MAXSDKPATH -LIBS=$(LIBS) maxapi.lib maxaudio.lib - -EXT=mxe - -######################################### - -!ifdef SHARED -# --- shared --- - -!elseifdef THREADED -# --- static multi-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_td-maxwin.lib -!else -LIBS=$(LIBS) flext_t-maxwin.lib -!endif - -!else -# --- static single-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_d-maxwin.lib -!else -LIBS=$(LIBS) flext-maxwin.lib -!endif - -!endif diff --git a/externals/grill/flext/build/make-win-msvc.inc b/externals/grill/flext/build/make-win-msvc.inc deleted file mode 100644 index 56b4deee..00000000 --- a/externals/grill/flext/build/make-win-msvc.inc +++ /dev/null @@ -1,22 +0,0 @@ -!ifdef $(MAX) -# Max/MSP -!include config-pd-msvc.txt -!include makefile-msvc.txt -!include ..\flext\build\make-win-max-msvc.inc - -!elseifdef $(PD) -# PD -!include config-pd-msvc.txt -!include makefile-msvc.txt -!include ..\flext\build\make-win-pd-msvc.inc - -!else -!error Platform not supported -!endif - -# all the source files from the package -!include make-files.txt - -# now build -!include ..\flext\build\make-win-gen-msvc.inc - diff --git a/externals/grill/flext/build/make-win-pd-bcc.inc b/externals/grill/flext/build/make-win-pd-bcc.inc deleted file mode 100644 index bcc062eb..00000000 --- a/externals/grill/flext/build/make-win-pd-bcc.inc +++ /dev/null @@ -1,35 +0,0 @@ -DEFS=$(DEFS) /DFLEXT_SYS=2 - -INCPATH=$(INCPATH) -I$(PDPATH)\src - -# these are both in FLEXTPATH -LIBS=$(LIBS) pd.lib pthreadVC.lib - -EXT=dll - -######################################### - -!ifdef SHARED -# --- shared --- - -!else -!ifdef THREADED -# --- static multi-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_td-pdwin.lib -!else -LIBS=$(LIBS) flext_t-pdwin.lib -!endif - -!else -# --- static single-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_d-pdwin.lib -!else -LIBS=$(LIBS) flext-pdwin.lib -!endif - -!endif -!endif diff --git a/externals/grill/flext/build/make-win-pd-cygwin.inc b/externals/grill/flext/build/make-win-pd-cygwin.inc deleted file mode 100644 index e8913af7..00000000 --- a/externals/grill/flext/build/make-win-pd-cygwin.inc +++ /dev/null @@ -1,43 +0,0 @@ -DEFS += -DFLEXT_SYS=2 - -INCPATH += -I$(PDPATH)/src -LIBPATH += -L$(PDPATH)/bin - -LDFLAGS += - -LIBS += - -EXT=dll - -######################################### - -ifdef SHARED -# --- shared --- - -ifdef DEBUG -LIBS += -lflext_d -else -LIBS += -lflext -endif - -else -ifdef THREADED -# --- static multi-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_td.a -else -LIBS += $(FLEXTPATH)/libflext_t.a -endif - -else -# --- static single-threaded --- - -ifdef DEBUG -LIBS += $(FLEXTPATH)/libflext_d.a -else -LIBS += $(FLEXTPATH)/libflext.a -endif - -endif -endif diff --git a/externals/grill/flext/build/make-win-pd-mingw.inc b/externals/grill/flext/build/make-win-pd-mingw.inc deleted file mode 100644 index a49e5b7a..00000000 --- a/externals/grill/flext/build/make-win-pd-mingw.inc +++ /dev/null @@ -1,34 +0,0 @@ -DEFS += -DFLEXT_SYS=2 - -INCPATH += -I$(PDPATH)/src -LIBPATH += -L$(PDPATH)/bin - -# these are both in PDPATH -LIBS += -lpd -lpthreadVC - -EXT=dll - -######################################### - -ifdef SHARED -# --- shared --- - -elseifdef THREADED -# --- static multi-threaded --- - -ifdef DEBUG -LIBS += -lflext_td-pdwin -else -LIBS += -lflext_t-pdwin -endif - -else -# --- static single-threaded --- - -ifdef DEBUG -LIBS += -lflext_d-pdwin -else -LIBS += -lflext-pdwin -endif - -endif diff --git a/externals/grill/flext/build/make-win-pd-msvc.inc b/externals/grill/flext/build/make-win-pd-msvc.inc deleted file mode 100644 index cec66266..00000000 --- a/externals/grill/flext/build/make-win-pd-msvc.inc +++ /dev/null @@ -1,34 +0,0 @@ -DEFS=$(DEFS) /DFLEXT_SYS=2 - -INCPATH=$(INCPATH) /I$(PDPATH)\src -LIBPATH=$(LIBPATH) /LIBPATH:$(PDPATH)\bin - -# these are both in PDPATH -LIBS=$(LIBS) pd.lib pthreadVC.lib - -EXT=dll - -######################################### - -!ifdef SHARED -# --- shared --- - -!elseifdef THREADED -# --- static multi-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_td-pdwin.lib -!else -LIBS=$(LIBS) flext_t-pdwin.lib -!endif - -!else -# --- static single-threaded --- - -!ifdef DEBUG -LIBS=$(LIBS) flext_d-pdwin.lib -!else -LIBS=$(LIBS) flext-pdwin.lib -!endif - -!endif diff --git a/externals/grill/flext/build/nmake-sub.mak b/externals/grill/flext/build/nmake-sub.mak new file mode 100644 index 00000000..75f8ea9e --- /dev/null +++ b/externals/grill/flext/build/nmake-sub.mak @@ -0,0 +1,24 @@ +# general settings +!include $(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt + +############################## + +# package info +!include build/package.txt + +# special package settings +!ifdef USRCONFIG +!include $(USRCONFIG) +!endif + +# package specific make stuff +!ifdef USRMAKE +!include $(USRMAKE) +!endif + +############################## + +# platform-specific make stuff +!include $(BUILDPATH)$(PLATFORM)\$(RTSYS)\make-$(COMPILER).inc +# general make stuff +!include $(BUILDPATH)$(PLATFORM)\make-$(COMPILER).inc diff --git a/externals/grill/flext/build/nmake.mak b/externals/grill/flext/build/nmake.mak index c8c599f1..35b3de0c 100644 --- a/externals/grill/flext/build/nmake.mak +++ b/externals/grill/flext/build/nmake.mak @@ -1,30 +1,79 @@ +# required settings: +# # PLATFORM - win/mac/lnx # RTSYS - pd/max # COMPILER - msvc/gcc/mingw/cygwin +# BUILDPATH including trailing \ -# general settings -!include config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt +# package info +!include build\package.txt + +SYSCONFIG=$(BUILDPATH)config-$(PLATFORM)-$(RTSYS)-$(COMPILER).txt +SYSDEFAULT=$(BUILDPATH)$(PLATFORM)\$(RTSYS)\config-$(COMPILER).def -############################### -# these are project specific +OPTIONS=-f $(BUILDPATH)nmake-sub.mak \ + PLATFORM=$(PLATFORM) RTSYS=$(RTSYS) COMPILER=$(COMPILER) \ + BUILDPATH=$(BUILDPATH) -# special package settings -!if exist(config-$(PLATFORM)-$(COMPILER).txt) -!include config-$(PLATFORM)-$(COMPILER).txt + +!ifdef HAVECONFIG +USRCONFIG=config.txt +USRDEFAULT=build\config-$(PLATFORM).def +OPTIONS=$(OPTIONS) USRCONFIG=$(USRCONFIG) !endif -# package specific make stuff -!if exist(makefile-$(PLATFORM)-$(COMPILER).txt) -!include makefile-$(PLATFORM)-$(COMPILER).txt +!ifdef HAVEMAKE +USRMAKE=build\makefile-$(PLATFORM)-$(COMPILER).inc +OPTIONS=$(OPTIONS) USRMAKE=$(USRMAKE) !endif -# package info -!include make-files.txt -############################## +all: config + $(MAKE) $(OPTIONS) all + +all-debug: config + $(MAKE) $(OPTIONS) DEBUG=1 $@ + +all-shared: config + $(MAKE) $(OPTIONS) SHARED=1 $@ + +all-shared-debug: config + $(MAKE) $(OPTIONS) SHARED=1 DEBUG=1 $@ + +clean install: + $(MAKE) $(OPTIONS) $@ -# platform-specific make stuff -!include make-$(PLATFORM)-$(RTSYS)-$(COMPILER).inc -# general make stuff -!include make-$(PLATFORM)-gen-$(COMPILER).inc + +config: $(USRMAKE) $(SYSCONFIG) $(USRCONFIG) + + +.precious: $(SYSCONFIG) $(USRCONFIG) + +$(SYSCONFIG): $(SYSDEFAULT) + @copy $** $@ + @echo ------------------------------------------------------------------------- + @echo A default system configuration file has been created. + @echo Please edit $(SYSCONFIG) + @echo to match your platform and start again. + @echo ------------------------------------------------------------------------- + @exit 1 + +!ifdef HAVECONFIG +$(USRCONFIG): $(USRDEFAULT) + @copy $** $@ + @echo ------------------------------------------------------------------------- + @echo A default package configuration file has been created. + @echo Please edit $(USRCONFIG) and start again. + @echo ------------------------------------------------------------------------- + @exit 1 +!endif + +!ifdef HAVEMAKE +$(USRMAKE): + @echo ------------------------------------------------------------------------- + @echo Your combination of platform, system and compiler is not supported yet. + @echo Required file: $(USRMAKE) + @echo ------------------------------------------------------------------------- + @exit 1 +!endif diff --git a/externals/grill/flext/build/win/make-bcc.inc b/externals/grill/flext/build/win/make-bcc.inc new file mode 100644 index 00000000..2ef1acfc --- /dev/null +++ b/externals/grill/flext/build/win/make-bcc.inc @@ -0,0 +1,85 @@ +INCPATH=$(INCPATH) -I$(FLEXTPATH) +LIBPATH=$(LIBPATH) -L$(FLEXTPATH) + +!ifdef BCCPATH +INCPATH=$(INCPATH) -I$(BCCPATH)\include +LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib +!endif + +LIBS=$(LIBS) cw32.lib import32.lib C0D32.OBJ +CFLAGS=$(CFLAGS) -tWD -tWM -w-8004 -w-8027 -w-8057 +LDFLAGS=$(LDFLAGS) /C /Tpd + +############################################## + +# use multithreaded static libraries +!ifdef DEBUG +CFLAGS=$(CFLAGS) -v -D_DEBUG +LDFLAGS=$(LDFLAGS) /v +!else +CFLAGS=$(CFLAGS) $(OFLAGS) -DNDEBUG +!endif + +!ifdef SHARED +# --- shared --- +DEFS=$(DEFS) -DFLEXT_SHARED + +!else +!ifdef THREADED +# --- static multi-threaded --- +DEFS=$(DEFS) -DFLEXT_THREADS + +!else +# --- static single-threaded --- + +!endif +!endif + +############################################## + +TARGET=$(OUTPATH)\$(NAME).$(EXT) + +# default target +all: $(OUTPATH) print $(TARGET) + +# convert both *.c and *.cpp +OBJSTMP= $(SRCS:.c=.obj) +OBJS= $(OBJSTMP:.objpp=.obj) + +print: + echo $(OBJS) + +$(OUTPATH): + @-if not exist $< mkdir $< + +SETUPFUNCTION=$(NAME)_setup + +$(OUTPATH)\$(NAME).def: + @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $< +# this next line fixes a strange problem with implib - lacking underscore?! + @echo IMPORTS _rtext_retext=PD.rtext_retext >> $< + +{$(SRCDIR)}.cpp{}.obj: + bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< + +{$(SRCDIR)}.c{}.obj: + bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< + +$(TARGET) :: $(OUTPATH) $(OUTPATH)\$(NAME).def + +$(TARGET) :: $(OBJS) + cd $(OUTPATH) + ilink32 $(LDFLAGS) $(LIBPATH) $** ,..\$<,,$(LIBS),$(NAME).def + cd .. + +$(INSTPATH): + -mkdir $@ + +# remove build +clean: + -del /q $(OUTPATH) > nul + -rmdir $(OUTPATH) > nul + +# install build +install: $(INSTPATH) $(TARGET) + copy $(TARGET) $(INSTPATH) > nul diff --git a/externals/grill/flext/build/win/make-cygwin.inc b/externals/grill/flext/build/win/make-cygwin.inc new file mode 100644 index 00000000..3c474864 --- /dev/null +++ b/externals/grill/flext/build/win/make-cygwin.inc @@ -0,0 +1,68 @@ +LDFLAGS += -shared -Wl,-x + +ifdef DEBUG +CFLAGS += -g -D_DEBUG +else +CFLAGS += $(OFLAGS) -DNDEBUG +LDFLAGS += -Wl,-S +endif + +############################################## + +INCPATH += -I$(FLEXTPATH) +LIBPATH += -L$(FLEXTPATH) + +ifdef SHARED +# --- shared --- +DEFS += -DFLEXT_SHARED + +else +ifdef THREADED +# --- static multi-threaded --- +DEFS += -DFLEXT_THREADS + +else +# --- static single-threaded --- + +endif +endif + +############################################## + +TARGET=$(OUTPATH)/$(NAME).$(EXT) + +CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) +CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) +COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) +CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) + +# default target +all: $(OUTPATH) $(TARGET) + +$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) + touch $@ + +$(OUTPATH): + mkdir $(OUTPATH) + +$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(OUTPATH)/%.o : $(SRCDIR)/%.c + $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(TARGET) : $(COBJS) $(CPPOBJS) + $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) + chmod 755 $@ + +$(INSTPATH): + mkdir $(INSTPATH) + +install:: $(INSTPATH) + +install:: $(TARGET) + install $^ $(INSTPATH) + +.PHONY: clean +clean: + $(RM) $(COBJS) $(CPPOBJS) $(TARGET) diff --git a/externals/grill/flext/build/win/make-mingw.inc b/externals/grill/flext/build/win/make-mingw.inc new file mode 100644 index 00000000..3c4e4b1d --- /dev/null +++ b/externals/grill/flext/build/win/make-mingw.inc @@ -0,0 +1,68 @@ +LDFLAGS += -shared -Wl,-x + +ifdef DEBUG +CFLAGS += -g -D_DEBUG +else +CFLAGS += $(OFLAGS) -DNDEBUG +LDFLAGS += -Wl,-S +endif + +############################################## + +INCPATH += -I$(FLEXTPATH) +LIBPATH += -L$(FLEXTPATH) + +ifdef SHARED +# --- shared --- +DEFS += -DFLEXT_SHARED + +else +ifdef THREADED +# --- static multi-threaded --- +DEFS += -DFLEXT_THREADS + +else +# --- static single-threaded --- + +endif +endif + +############################################## + +TARGET=$(OUTPATH)/$(NAME).$(EXT) + +CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) +CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) +COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS))) +CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS))) + + +# default target +all: $(OUTPATH) $(TARGET) + +#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) +# touch $@ + +$(OUTPATH): + -mkdir $(subst /,\,$@) + +$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(OUTPATH)/%.o : $(SRCDIR)/%.c + $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@ + +$(TARGET) : $(COBJS) $(CPPOBJS) + $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) + +$(INSTPATH): + -mkdir $(subst /,\,$@) + +install:: $(INSTPATH) + +install:: $(TARGET) + copy $(subst /,\,$^ $(INSTPATH)) + +.PHONY: clean +clean: + -del $(subst /,\,$(COBJS) $(CPPOBJS) $(TARGET)) diff --git a/externals/grill/flext/build/win/make-msvc.inc b/externals/grill/flext/build/win/make-msvc.inc new file mode 100644 index 00000000..1fc06c8f --- /dev/null +++ b/externals/grill/flext/build/win/make-msvc.inc @@ -0,0 +1,68 @@ +INCPATH=$(INCPATH) /I$(FLEXTPATH) +LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTPATH) + +!ifdef MSVCPATH +INCPATH=$(INCPATH) /I$(MSVCPATH)\include +LIBPATH=$(LIBPATH) /LIBPATH:$(MSVCPATH)\lib +!endif + +# for VC7 - enable exception handling +CFLAGS=$(CFLAGS) /EHsc + +############################################## + +# use multithreaded static libraries +!ifdef DEBUG +CFLAGS=$(CFLAGS) /D_DEBUG /DMTd +LDFLAGS=$(LDFLAGS) /DEBUG +!else +CFLAGS=$(CFLAGS) $(OFLAGS) /DNDEBUG /DMT +LDFLAGS=$(LDFLAGS) /INCREMENTAL:NO +!endif + +!ifdef SHARED +# --- shared --- +DEFS=$(DEFS) /DFLEXT_SHARED + +!elseifdef THREADED +# --- static multi-threaded --- +DEFS=$(DEFS) /DFLEXT_THREADS + +!else +# --- static single-threaded --- + +!endif + +############################################## + +# default target +all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT) + +OBJS= $(SRCS:.c=.obj) +OBJS= $(OBJS:.objpp=.obj) + +$(OUTPATH): + -mkdir $(OUTPATH) > nul + +{$(SRCDIR)}.cpp{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@ + +{$(SRCDIR)}.c{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)\$@ + +$(OUTPATH)\$(NAME).$(EXT): $(OBJS) + cd $(OUTPATH) + link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) $** $(LIBS) $(LIBPATH) + @-del *.exp + @-del *.lib + cd .. + +# remove build +clean: + -del /q $(OUTPATH) > nul + -rmdir $(OUTPATH) > nul + +# install build +install: + @-if not exist $(INSTPATH) mkdir $(INSTPATH) + copy $(OUTPATH)\$(NAME).$(EXT) $(INSTPATH) > nul diff --git a/externals/grill/flext/build/win/max/config-mingw.def b/externals/grill/flext/build/win/max/config-mingw.def new file mode 100644 index 00000000..d6bbd4dc --- /dev/null +++ b/externals/grill/flext/build/win/max/config-mingw.def @@ -0,0 +1,17 @@ +# where are the Max/MSP SDK header files? +# you should have the latest version! +MAXSDKPATH="c:/data/prog/audio/maxmspsdk_win/4.5 headers/c74support" + +# where should the external be installed? +INSTPATH="%CommonProgramFiles%/Cycling '74/externals/flext" + +# where do the flext headers and libraries reside? +FLEXTPATH="%CommonProgramFiles%/Cycling '74/flext" + +# where should the external be built? +# (path for temporary files) +OUTPATH=max-mingw + +# some user-definable flags +# (check if they match your system!) +OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/win/max/config-msvc.def b/externals/grill/flext/build/win/max/config-msvc.def new file mode 100644 index 00000000..a7db2d2c --- /dev/null +++ b/externals/grill/flext/build/win/max/config-msvc.def @@ -0,0 +1,17 @@ +# where are the Max/MSP SDK header files? +# you should have the latest version! +MAXSDKPATH="c:\data\prog\audio\maxmspsdk_win\4.5 headers\c74support" + +# where should the external be installed? +INSTPATH="%CommonProgramFiles%\Cycling '74\externals\flext" + +# where do the flext headers and libraries reside? +FLEXTPATH="%CommonProgramFiles%\Cycling '74\flext" + +# where should the external be built? +# (path for temporary files) +OUTPATH=max-msvc + +# some user-definable flags +# (check if they match your system!) +OFLAGS=/G6 /Ox /arch:SSE diff --git a/externals/grill/flext/build/win/max/make-mingw.inc b/externals/grill/flext/build/win/max/make-mingw.inc new file mode 100644 index 00000000..c34825f8 --- /dev/null +++ b/externals/grill/flext/build/win/max/make-mingw.inc @@ -0,0 +1,35 @@ +DEFS += -DFLEXT_SYS=1 +CFLAGS += -fpack-struct=2 + +INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes +LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes + +# these are both in PDPATH +LIBS += -lmaxapi -lmaxaudio + +EXT=mxe + +######################################### + +ifdef SHARED +# --- shared --- + +elseifdef THREADED +# --- static multi-threaded --- + +ifdef DEBUG +LIBS += -lflext_td-maxwin +else +LIBS += -lflext_t-maxwin +endif + +else +# --- static single-threaded --- + +ifdef DEBUG +LIBS += -lflext_d-maxwin +else +LIBS += -lflext-maxwin +endif + +endif diff --git a/externals/grill/flext/build/win/max/make-msvc.inc b/externals/grill/flext/build/win/max/make-msvc.inc new file mode 100644 index 00000000..636029fa --- /dev/null +++ b/externals/grill/flext/build/win/max/make-msvc.inc @@ -0,0 +1,35 @@ +DEFS=$(DEFS) /DFLEXT_SYS=1 +CFLAGS=$(CFLAGS) /Zp2 + +INCPATH=$(INCPATH) /I$(MAXSDKPATH)\max-includes /I$(MAXSDKPATH)\msp-includes +LIBPATH=$(LIBPATH) /LIBPATH:$(MAXSDKPATH)\max-includes /LIBPATH:$(MAXSDKPATH)\msp-includes + +# these are both in MAXSDKPATH +LIBS=$(LIBS) maxapi.lib maxaudio.lib + +EXT=mxe + +######################################### + +!ifdef SHARED +# --- shared --- + +!elseifdef THREADED +# --- static multi-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_td-maxwin.lib +!else +LIBS=$(LIBS) flext_t-maxwin.lib +!endif + +!else +# --- static single-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_d-maxwin.lib +!else +LIBS=$(LIBS) flext-maxwin.lib +!endif + +!endif diff --git a/externals/grill/flext/build/win/pd/config-bcc.def b/externals/grill/flext/build/win/pd/config-bcc.def new file mode 100644 index 00000000..b93cece3 --- /dev/null +++ b/externals/grill/flext/build/win/pd/config-bcc.def @@ -0,0 +1,19 @@ +# where is PD? +PDPATH=c:\programme\audio\pd + +# where should the external be installed? +INSTPATH=$(PDPATH)\extra + +# where do the flext headers and libraries reside? +FLEXTPATH=$(PDPATH)\flext + +# where is BorlandC++? +BCCPATH=C:\Programme\prog\bcc55 + +# where should the external be built? +OUTPATH=pd-bcc + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=-6 -O2 -OS -ff -d + diff --git a/externals/grill/flext/build/win/pd/config-cygwin.def b/externals/grill/flext/build/win/pd/config-cygwin.def new file mode 100644 index 00000000..1c92fe66 --- /dev/null +++ b/externals/grill/flext/build/win/pd/config-cygwin.def @@ -0,0 +1,18 @@ +# where is PD? +# (it seems like cygwin compilation is only working if +# there are no pthread.h and sched.h in the PD src subfolder +# - these are provided by cygwin ) +PDPATH=/cygdrive/c/programme/audio/pd + +# where should the external be installed? +INSTPATH=$(PDPATH)/extra + +# where do the flext headers and libraries reside? +FLEXTPATH=$(PDPATH)/flext + +# where should the external be built? +OUTPATH=pd-cygwin + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/win/pd/config-mingw.def b/externals/grill/flext/build/win/pd/config-mingw.def new file mode 100644 index 00000000..a721d45d --- /dev/null +++ b/externals/grill/flext/build/win/pd/config-mingw.def @@ -0,0 +1,15 @@ +# where is PD? +PDPATH=c:/programme/audio/pd + +# where should the external be installed? +INSTPATH=$(PDPATH)/extra + +# where do the flext headers and libraries reside? +FLEXTPATH=$(PDPATH)/flext + +# where should the external be built? +OUTPATH=pd-mingw + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=-O2 -march=pentium4 -msse diff --git a/externals/grill/flext/build/win/pd/config-msvc.def b/externals/grill/flext/build/win/pd/config-msvc.def new file mode 100644 index 00000000..aa4c5feb --- /dev/null +++ b/externals/grill/flext/build/win/pd/config-msvc.def @@ -0,0 +1,19 @@ +# where is PD? +PDPATH=c:\programme\audio\pd + +# where should the external be installed? +INSTPATH=$(PDPATH)\extra + +# where do the flext headers and libraries reside? +FLEXTPATH=$(PDPATH)\flext + +# where is MS VC++? +# (not necessary if the build is run with the compiler environment) +# MSVCPATH=C:\Programme\Microsoft Visual Studio .NET 2003\Vc7 + +# where should the external be built? +OUTPATH=pd-msvc + +# user defined compiler flags +# (check if they match your system!) +OFLAGS=/G6 /Ox /arch:SSE diff --git a/externals/grill/flext/build/win/pd/make-bcc.inc b/externals/grill/flext/build/win/pd/make-bcc.inc new file mode 100644 index 00000000..bcc062eb --- /dev/null +++ b/externals/grill/flext/build/win/pd/make-bcc.inc @@ -0,0 +1,35 @@ +DEFS=$(DEFS) /DFLEXT_SYS=2 + +INCPATH=$(INCPATH) -I$(PDPATH)\src + +# these are both in FLEXTPATH +LIBS=$(LIBS) pd.lib pthreadVC.lib + +EXT=dll + +######################################### + +!ifdef SHARED +# --- shared --- + +!else +!ifdef THREADED +# --- static multi-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_td-pdwin.lib +!else +LIBS=$(LIBS) flext_t-pdwin.lib +!endif + +!else +# --- static single-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_d-pdwin.lib +!else +LIBS=$(LIBS) flext-pdwin.lib +!endif + +!endif +!endif diff --git a/externals/grill/flext/build/win/pd/make-cygwin.inc b/externals/grill/flext/build/win/pd/make-cygwin.inc new file mode 100644 index 00000000..e8913af7 --- /dev/null +++ b/externals/grill/flext/build/win/pd/make-cygwin.inc @@ -0,0 +1,43 @@ +DEFS += -DFLEXT_SYS=2 + +INCPATH += -I$(PDPATH)/src +LIBPATH += -L$(PDPATH)/bin + +LDFLAGS += + +LIBS += + +EXT=dll + +######################################### + +ifdef SHARED +# --- shared --- + +ifdef DEBUG +LIBS += -lflext_d +else +LIBS += -lflext +endif + +else +ifdef THREADED +# --- static multi-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_td.a +else +LIBS += $(FLEXTPATH)/libflext_t.a +endif + +else +# --- static single-threaded --- + +ifdef DEBUG +LIBS += $(FLEXTPATH)/libflext_d.a +else +LIBS += $(FLEXTPATH)/libflext.a +endif + +endif +endif diff --git a/externals/grill/flext/build/win/pd/make-mingw.inc b/externals/grill/flext/build/win/pd/make-mingw.inc new file mode 100644 index 00000000..a49e5b7a --- /dev/null +++ b/externals/grill/flext/build/win/pd/make-mingw.inc @@ -0,0 +1,34 @@ +DEFS += -DFLEXT_SYS=2 + +INCPATH += -I$(PDPATH)/src +LIBPATH += -L$(PDPATH)/bin + +# these are both in PDPATH +LIBS += -lpd -lpthreadVC + +EXT=dll + +######################################### + +ifdef SHARED +# --- shared --- + +elseifdef THREADED +# --- static multi-threaded --- + +ifdef DEBUG +LIBS += -lflext_td-pdwin +else +LIBS += -lflext_t-pdwin +endif + +else +# --- static single-threaded --- + +ifdef DEBUG +LIBS += -lflext_d-pdwin +else +LIBS += -lflext-pdwin +endif + +endif diff --git a/externals/grill/flext/build/win/pd/make-msvc.inc b/externals/grill/flext/build/win/pd/make-msvc.inc new file mode 100644 index 00000000..cec66266 --- /dev/null +++ b/externals/grill/flext/build/win/pd/make-msvc.inc @@ -0,0 +1,34 @@ +DEFS=$(DEFS) /DFLEXT_SYS=2 + +INCPATH=$(INCPATH) /I$(PDPATH)\src +LIBPATH=$(LIBPATH) /LIBPATH:$(PDPATH)\bin + +# these are both in PDPATH +LIBS=$(LIBS) pd.lib pthreadVC.lib + +EXT=dll + +######################################### + +!ifdef SHARED +# --- shared --- + +!elseifdef THREADED +# --- static multi-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_td-pdwin.lib +!else +LIBS=$(LIBS) flext_t-pdwin.lib +!endif + +!else +# --- static single-threaded --- + +!ifdef DEBUG +LIBS=$(LIBS) flext_d-pdwin.lib +!else +LIBS=$(LIBS) flext-pdwin.lib +!endif + +!endif diff --git a/externals/grill/flext/buildext.bat b/externals/grill/flext/buildext.bat new file mode 100644 index 00000000..0fcd07b8 --- /dev/null +++ b/externals/grill/flext/buildext.bat @@ -0,0 +1,41 @@ +@set flext=%~dp0 + +@rem Arguments: +@rem %1 - platform (win/lnx/mac) +@rem %2 - system (pd/max) +@rem %3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc) +@rem %4 - target (all/all-debug/all-shared/all-shared-debug/clean/install) + +@set platform=%1 +@set rtsys=%2 +@set compiler=%3 +@set target=%4 + +@rem --- The subbatch knowns which make utility to use --- +@set subbatch=%flext%build\build-%compiler%.bat + +@if "%platform%"=="" goto syntax +@if "%rtsys%"=="" goto syntax +@if "%compiler%"=="" goto syntax + +@if not exist %subbatch% goto syntax + +@call %subpatch% %subbatch% %platform% %rtsys% %target% %5 %6 %7 %8 %9 + +@goto end + +@rem ----------------------------------------- +:syntax + +@echo . +@echo SYNTAX: buildext [platform] [system] [compiler] {target} +@echo platform ... win / lnx / mac +@echo system ... pd / max +@echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc +@echo target ... all (default) / all-debug / all-shared / all-shared-debug / +@echo clean / install +@echo . +@echo Please make sure that your make program and compiler can be accessed with the +@echo system path and that all relevant environment variables are properly set. + +:end diff --git a/externals/grill/flext/buildext.sh b/externals/grill/flext/buildext.sh new file mode 100644 index 00000000..9f5f8480 --- /dev/null +++ b/externals/grill/flext/buildext.sh @@ -0,0 +1,33 @@ +flext=${0%/*}/ + +# Arguments: +# $1 - platform (win/lnx/mac) +# $2 - system (pd/max) +# $3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc) +# $4 - target (all/all-debug/all-shared/all-shared-debug/clean/install) + +platform=$1 +rtsys=$2 +compiler=$3 +target=$4 + +# --- The subbatch knowns which make utility to use --- +subbatch=${flext}build/build-${compiler}.sh + +if + [ -n "$platform" -a -n "$rtsys" -a -n "$compiler" -a -f $subbatch ] +then + sh $subbatch $platform $rtsys $target $5 $6 $7 $8 $9 +else + echo + echo SYNTAX: buildext [platform] [system] [compiler] {target} + echo platform ... win / lnx / mac + echo system ..... pd / max + echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc + echo target ..... all \(default\) / all-debug / all-shared / all-shared-debug / + echo ............ clean / install + echo + echo Please make sure that your make program and compiler can be accessed with the + echo system path and that all relevant environment variables are properly set. +fi + -- cgit v1.2.1