From 37c4500e482c27a28e6ba0a247cf299440be41e9 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 15 Nov 2003 03:40:55 +0000 Subject: "" svn path=/trunk/; revision=1184 --- externals/grill/fftease/build-max-msvc.bat | 4 ++ externals/grill/fftease/config-max-msvc.txt | 30 +++++++++++ externals/grill/fftease/config-pd-msvc.txt | 9 +++- externals/grill/fftease/makefile.max-msvc | 83 +++++++++++++++++++++++++++++ externals/grill/fftease/makefile.pd-msvc | 11 ++-- 5 files changed, 130 insertions(+), 7 deletions(-) create mode 100644 externals/grill/fftease/build-max-msvc.bat create mode 100644 externals/grill/fftease/config-max-msvc.txt create mode 100644 externals/grill/fftease/makefile.max-msvc (limited to 'externals/grill') diff --git a/externals/grill/fftease/build-max-msvc.bat b/externals/grill/fftease/build-max-msvc.bat new file mode 100644 index 00000000..130a3bc0 --- /dev/null +++ b/externals/grill/fftease/build-max-msvc.bat @@ -0,0 +1,4 @@ +@echo --- Building with MS Visual C++ --- + +nmake -f makefile.max-msvc clean +nmake -f makefile.max-msvc diff --git a/externals/grill/fftease/config-max-msvc.txt b/externals/grill/fftease/config-max-msvc.txt new file mode 100644 index 00000000..a525ea53 --- /dev/null +++ b/externals/grill/fftease/config-max-msvc.txt @@ -0,0 +1,30 @@ +# FFTease - A set of Live Spectral Processors +# Originally written by Eric Lyon and Christopher Penrose for the Max/MSP platform +# +# Copyright (c)Thomas Grill (xovo@gmx.net) +# For information on usage and redistribution, and for a DISCLAIMER OF ALL +# WARRANTIES, see the file, "license.txt," in this distribution. +# + + +# where is the Max SDK? +MAXSDKPATH="F:\prog\audio\MaxWinSDK\c74support" + +# where do the flext libraries reside? +FLEXTPATH="%CommonProgramFiles%\Cycling '74\flext" + +# where is MS VC++? +# (need not be defined if the build is started with the compiler environment set) +# MSVCPATH="c:\programme\prog\microsoft visual studio\VC98" + + +# where should the external be built? +OUTPATH=max-msvc + +# where should the external be installed? +# (leave blank to omit installation) +INSTPATH="%CommonProgramFiles%\Cycling '74\externals\flext" + + +# some user-definable flags +UFLAGS=/G6 /arch:SSE \ No newline at end of file diff --git a/externals/grill/fftease/config-pd-msvc.txt b/externals/grill/fftease/config-pd-msvc.txt index ee4283a7..21b6739f 100644 --- a/externals/grill/fftease/config-pd-msvc.txt +++ b/externals/grill/fftease/config-pd-msvc.txt @@ -14,7 +14,8 @@ PDPATH=c:\programme\audio\pd FLEXTPATH=$(PDPATH)\flext # where is MS VC++? -MSVCPATH=c:\programme\prog\microsoft visual studio\VC98 +# (need not be defined if the build is started with the compiler environment set) +# MSVCPATH=c:\programme\prog\microsoft visual studio\VC98 # where should the external be built? @@ -22,4 +23,8 @@ OUTPATH=pd-msvc # where should the external be installed? # (leave blank to omit installation) -INSTDIR=$(PDPATH)\extra +INSTPATH=$(PDPATH)\extra + + +# some user-definable flags +UFLAGS=/G6 \ No newline at end of file diff --git a/externals/grill/fftease/makefile.max-msvc b/externals/grill/fftease/makefile.max-msvc new file mode 100644 index 00000000..b1ed7e24 --- /dev/null +++ b/externals/grill/fftease/makefile.max-msvc @@ -0,0 +1,83 @@ +# FFTease - A set of Live Spectral Processors +# Originally written by Eric Lyon and Christopher Penrose for the Max/MSP platform +# +# Copyright (c)Thomas Grill (xovo@gmx.net) +# For information on usage and redistribution, and for a DISCLAIMER OF ALL +# WARRANTIES, see the file, "license.txt," in this distribution. +# +# +# Makefile for MSVC++ 6 +# +# usage: +# to build run "make -f makefile.max-msvc" +# + +!include config-max-msvc.txt + +# includes +INCPATH=/I$(MAXSDKPATH)\max-includes /I$(MAXSDKPATH)\msp-includes /I$(FLEXTPATH) +LDFLAGS=/LIBPATH:$(FLEXTPATH) + +!ifdef MSVCPATH +INCPATH=$(INCPATH) /I$(MSVCPATH)\include +LDFLAGS=$(LDFLAGS) /LIBPATH:$(MSVCPATH)\lib +!endif + +!ifdef _DEBUG +LIBS=flext_d-maxwin.lib +LDFLAGS=$(LDFLAGS) /LIBPATH:$(MAXSDKPATH)\max-includes\win-includes\debug\ /LIBPATH:$(MAXSDKPATH)\msp-includes\win-includes\debug\ +!else +LIBS=flext-maxwin.lib +LDFLAGS=$(LDFLAGS) /LIBPATH:$(MAXSDKPATH)\max-includes\win-includes\release\ /LIBPATH:$(MAXSDKPATH)\msp-includes\win-includes\release\ +!endif + +LIBS=$(LIBS) maxapi.lib maxaudio.lib + +# compiler definitions and flags +DEFS=/DFLEXT_SYS=1 $(UFLAGS) + +CFLAGS=/ML /GR- /GD /Ox /GX + +# the rest can stay untouched +# ---------------------------------------------- + +# all the source files from the package +!include make-files.txt + +# ----------------------------------------------- + +NAME=fftease +EXT=mxe +DIR=src + +all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT) + +# remove build +clean: + -del /q $(OUTPATH) > nul + -rmdir $(OUTPATH) > nul + +OBJS= $(SRCS:.c=.obj) +OBJS= $(OBJS:.objpp=.obj) + + +$(OUTPATH): + -mkdir $(OUTPATH) > nul + +{$(DIR)}.cpp{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)/$@ + +{$(DIR)}.c{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)/$@ + + +$(OUTPATH)\$(NAME).$(EXT): $(OBJS) + cd $(OUTPATH) + link /DLL $(LDFLAGS) /out:$(NAME).$(EXT) /INCREMENTAL:NO $** $(LIBS) $(LIBPATH) + @-del *.exp + @-del *.lib + cd .. +!ifdef INSTPATH + @-if not exist $(INSTPATH) mkdir $(INSTPATH) + copy $@ $(INSTPATH) > nul +!endif diff --git a/externals/grill/fftease/makefile.pd-msvc b/externals/grill/fftease/makefile.pd-msvc index f842ee62..f10b2ac3 100644 --- a/externals/grill/fftease/makefile.pd-msvc +++ b/externals/grill/fftease/makefile.pd-msvc @@ -20,9 +20,9 @@ LIBPATH=/LIBPATH:"$(MSVCPATH)\lib" /LIBPATH:"$(PDPATH)\bin" /LIBPATH:"$(FLEXTPAT LIBS=pd.lib flext-pdwin.lib # compiler definitions and flags -DEFS=/DPD +DEFS=/DFLEXT_SYS=2 -CFLAGS=/GR- /GX- /GD /G6 /Ox +CFLAGS=/GR- /GX- /GD /Ox # the rest can stay untouched # ---------------------------------------------- @@ -33,9 +33,10 @@ CFLAGS=/GR- /GX- /GD /G6 /Ox # ----------------------------------------------- NAME=fftease +EXT=dll DIR=src -all: $(OUTPATH) $(OUTPATH)\$(NAME).dll +all: $(OUTPATH) $(OUTPATH)\$(NAME).$(EXT) # remove build clean: @@ -56,9 +57,9 @@ $(OUTPATH): cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(OUTPATH)/$@ -$(OUTPATH)\$(NAME).dll: $(OBJS) +$(OUTPATH)\$(NAME).$(EXT): $(OBJS) cd $(OUTPATH) - link /DLL /out:$(NAME).dll /INCREMENTAL:NO $** $(LIBS) $(LIBPATH) + link /DLL /out:$(NAME).$(EXT) /INCREMENTAL:NO $** $(LIBS) $(LIBPATH) @-del *.exp @-del *.lib cd .. -- cgit v1.2.1