Update of /cvsroot/pure-data/externals/grill/xsample In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3158
Modified Files: config-pd-cygwin.txt makefile.pd-cygwin Added Files: build-pd-mingw.bat config-pd-mingw.txt makefile.pd-mingw Log Message: ""
--- NEW FILE: build-pd-mingw.bat --- mingw32-make -f makefile.pd-mingw mingw32-make -f makefile.pd-mingw install mingw32-make -f makefile.pd-mingw install-help
--- NEW FILE: config-pd-mingw.txt --- # xsample - extended sample objects for Max/MSP and pd (pure data) # Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) #
# your c++ compiler (define only if it's different than g++) # CXX=g++
# where does the PD installation reside? PD=c:/programme/audio/pd
# where are the PD header files? # leave it blank if it is a system directory (like /usr/local/include), # since gcc 3.2 complains about it PDINC=${PD}/src
# where do the flext libraries reside? FLEXTPATH=${PD}/flext
# where should xsample objects be built? TARGDIR=./pd-mingw
# where should xsample be installed? # (leave blank to omit installation) INSTDIR=${PD}/extra
# where should the xsample help be installed? # (leave blank to omit installation) HELPDIR=${PD}/doc/5.reference
# additional compiler flags # (check whether they fit to your system!) UFLAGS=-mcpu=pentium4 -msse -mfpmath=sse # gcc 3.2 # UFLAGS=-mcpu=pentiumpro # gcc 2.95
# define to build with shared flext library # FLEXT_SHARED=1 --- NEW FILE: makefile.pd-mingw --- # xsample - extended sample objects for Max/MSP and pd (pure data) # Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ minGW # # usage: # to build run "make -f makefile.pd-mingw" # to install (as root), do "make -f makefile.pd-mingw install" #
CONFIG=config-pd-mingw.txt MAKEFILE=makefile.pd-mingw
include ${CONFIG}
# compiler stuff INCLUDES=$(PDINC)
FLAGS=-DFLEXT_SYS=2 CFLAGS=-O2 -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions ${UFLAGS}
PDLIBS=$(PD)/bin/pd.dll $(PD)/bin/pthreadVC.dll
ifdef FLEXT_SHARED
CFLAGS+=-DFLEXT_SHARED FLEXTLIB=$(FLEXTPATH)/flext.dll
else
FLEXTLIB=$(FLEXTPATH)/flext-pdwin.lib
endif
# ---------------------------------------------- # the rest can stay untouched # ----------------------------------------------
NAME=xsample
include make-files.txt
TARGET=$(TARGDIR)/$(NAME).dll
# default target all: $(TARGDIR) $(TARGET)
$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(CONFIG) # echo touch $(patsubst %,$(SRCDIR)/%,$(SRCS)) # minGW has no touch
$(TARGDIR): -mkdir $(TARGDIR)
$(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) $(CXX) -shared $(LDFLAGS) $^ ${PDLIBS} $(patsubst %,-l%,$(LIBS)) -o $@ strip --strip-unneeded $@ chmod 755 $@
$(INSTDIR): -mkdir $(INSTDIR)
install:: $(INSTDIR)
install:: $(TARGET) cp $^ $(INSTDIR) # chown root.root $(patsubst %,$(INSTDIR)/%,$(notdir $^))
$(HELPDIR): -mkdir $(HELPDIR)
install-help:: $(HELPDIR)
install-help:: ./pd chmod 644 $^/*.* cp $^/*.* $(HELPDIR)
.PHONY: clean clean: rm -f $(TARGDIR)/*.o $(TARGET)
Index: config-pd-cygwin.txt =================================================================== RCS file: /cvsroot/pure-data/externals/grill/xsample/config-pd-cygwin.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config-pd-cygwin.txt 14 Apr 2003 10:04:47 -0000 1.1 --- config-pd-cygwin.txt 23 Feb 2004 03:32:21 -0000 1.2 *************** *** 1,4 **** # xsample - extended sample objects for Max/MSP and pd (pure data) ! # Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) #
--- 1,4 ---- # xsample - extended sample objects for Max/MSP and pd (pure data) ! # Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) #
*************** *** 30,33 **** # additional compiler flags # (check whether they fit to your system!) ! UFLAGS=-mcpu=pentium3 -msse -mfpmath=sse # gcc 3.2 # UFLAGS=-mcpu=pentiumpro # gcc 2.95 --- 30,36 ---- # additional compiler flags # (check whether they fit to your system!) ! UFLAGS=-mcpu=pentium4 -msse -mfpmath=sse # gcc 3.2 # UFLAGS=-mcpu=pentiumpro # gcc 2.95 + + # define to build with shared flext library + #FLEXT_SHARED=1
Index: makefile.pd-cygwin =================================================================== RCS file: /cvsroot/pure-data/externals/grill/xsample/makefile.pd-cygwin,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** makefile.pd-cygwin 14 Apr 2003 10:04:47 -0000 1.1 --- makefile.pd-cygwin 23 Feb 2004 03:32:21 -0000 1.2 *************** *** 1,4 **** # xsample - extended sample objects for Max/MSP and pd (pure data) ! # Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ cygwin --- 1,4 ---- # xsample - extended sample objects for Max/MSP and pd (pure data) ! # Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ cygwin *************** *** 10,24 ****
CONFIG=config-pd-cygwin.txt
include ${CONFIG}
- FLEXTLIB=$(FLEXTPATH)/flext-pdwin.lib - PDLIBS=$(PD)/bin/pd.dll $(PD)/bin/pthreadVC.dll
# compiler stuff ! INCLUDES=$(PDINC) # /usr/include FLAGS=-DFLEXT_SYS=2 ! CFLAGS=${UFLAGS} -O6 -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions ! LIBS=m
# ---------------------------------------------- --- 10,39 ----
CONFIG=config-pd-cygwin.txt + MAKEFILE=makefile.pd-cygwin
include ${CONFIG}
# compiler stuff ! # /usr/include holds the cygwin pthread headers and must be first! ! INCLUDES=/usr/include $(PDINC) ! FLAGS=-DFLEXT_SYS=2 ! CFLAGS=-O2 -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions ${UFLAGS} ! ! PDLIBS=$(PD)/bin/pd.dll $(PD)/bin/pthreadVC.dll ! ! ! ifdef FLEXT_SHARED ! ! CFLAGS+=-DFLEXT_SHARED ! FLEXTLIB=$(FLEXTPATH)/flext.dll ! ! else ! ! FLEXTLIB=$(FLEXTPATH)/flext-pdwin.lib ! ! endif !
# ---------------------------------------------- *************** *** 30,34 **** include make-files.txt
- MAKEFILE=makefile.pd-cygwin TARGET=$(TARGDIR)/$(NAME).dll
--- 45,48 ---- *************** *** 46,50 ****
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) ! $(CXX) $(LDFLAGS) -shared $^ ${PDLIBS} $(patsubst %,-l%,$(LIBS)) -o $@ strip --strip-unneeded $@ chmod 755 $@ --- 60,64 ----
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) ! $(CXX) -shared $(LDFLAGS) $^ ${PDLIBS} $(patsubst %,-l%,$(LIBS)) -o $@ strip --strip-unneeded $@ chmod 755 $@