[PD-cvs] externals/grill/flext make-inc.pd-bcc,NONE,1.1 build-pd-bcc.bat,1.3,1.4 config-pd-bcc.txt,1.6,1.7 config-pd-darwin.txt,1.18,1.19 flext.vcproj,1.35,1.36 make-files.txt,1.10,1.11 makefile.pd-bcc,1.4,1.5

Thomas Grill xovo at users.sourceforge.net
Sat Dec 18 06:00:57 CET 2004


Update of /cvsroot/pure-data/externals/grill/flext
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4934

Modified Files:
	build-pd-bcc.bat config-pd-bcc.txt config-pd-darwin.txt 
	flext.vcproj make-files.txt makefile.pd-bcc 
Added Files:
	make-inc.pd-bcc 
Log Message:
updated build system for linux
updated make system for BCC
build system for flext-based externals
updated build system
add xcode project
comply to build system


--- NEW FILE: make-inc.pd-bcc ---
# flext - C++ layer for Max/MSP and pd (pure data) externals
# Copyright (c) 2001-2004 Thomas Grill (gr at grrrr.org)
#
# Makefile for BorlandC++ 
#
# usage: make -f makefile.bcc

!include config-pd-bcc.txt

TARGET=pdwin  # appendix to lib name

# includes
INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(SRCDIR)

# compiler definitions and flags
DEFS=-DFLEXT_SYS=2
CFLAGS=-tWD

!ifdef DEBUG
CFLAGS=$(CFLAGS) -v
DEFS=$(DEFS) -DFLEXT_DEBUG
!else
CFLAGS=$(CFLAGS) -6 -O2 -OS -ff
!endif

!ifdef THREADED
CFLAGS=$(CFLAGS) -tWM
DEFS=$(DEFS) -DFLEXT_THREADS
!endif


# the rest can stay untouched
# ----------------------------------------------

# all the source files from the package
!include make-files.txt

!ifdef SNDOBJ
INCPATH=$(INCPATH) -I$(SNDOBJ)
SRCS=$(SRCS) $(SRCS_SNDOBJ)
HDRS=$(HDRS) $(HDRS_SNDOBJ)
!endif

!ifdef STK
INCPATH=$(INCPATH) -I$(STK)
SRCS=$(SRCS) $(SRCS_STK)
HDRS=$(HDRS) $(HDRS_STK)
!endif

TARGET=$(OUTPATH)\$(NAME)-$(TARGET).lib

#default target
all: $(OUTPATH) $(TARGET) $(OUTPATH)\pd.lib $(OUTPATH)\pthreadVC.lib

# remove build
clean:
	-del /s /q $(OUTPATH) > nul
	rmdir $(OUTPATH)

# -----------------------------------------------

OBJS= $(SRCS:.cpp=.obj)

#.PATH.obj=$(OUTPATH)


DIR="/"

$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll 
	implib -a $< $**

$(OUTPATH)\pthreadVC.lib: $(PDPATH)\bin\pthreadVC.dll 
	implib -a $< $**

{$(SRCDIR)}.cpp.obj:
	bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<

$(OUTPATH):
	@-if not exist $< mkdir $<

$(TARGET): $(OBJS) 
	@-del "$<"
	cd $(OUTPATH)
	tlib "..\$<" +$(**: = +)
	cd ..
!if $d(INSTDIR) && "$(INSTDIR)" != ""
	@-if not exist $(INSTDIR) mkdir $(INSTDIR)
	-copy $< $(INSTDIR) >nul
	-copy $(OUTPATH)\pd.lib $(INSTDIR) >nul
	-copy $(OUTPATH)\pthreadVC.lib $(INSTDIR) >nul
	-copy $(SRCDIR)\*.h $(INSTDIR) >nul
!endif

Index: makefile.pd-bcc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/makefile.pd-bcc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** makefile.pd-bcc	1 Jan 2003 04:32:04 -0000	1.4
--- makefile.pd-bcc	18 Dec 2004 05:00:55 -0000	1.5
***************
*** 1,88 ****
  # flext - C++ layer for Max/MSP and pd (pure data) externals
! # Copyright (c) 2001-2003 Thomas Grill (xovo at gmx.net)
  #
! # Makefile for BorlandC++ 
  #
- # usage: make -f makefile.bcc
  #
! # ---------------------------------------------
  #
! # note: no threading support for BorlandC++
  #
! # ---------------------------------------------
! 
! !include config-pd-bcc.txt
! 
! SOURCE=source
! 
! NAME=flext
! TARGET=pdwin  # appendix to lib name
! 
! # includes
! INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -I$(SOURCE)
! 
! !ifdef SNDOBJ
! INCPATH=$(INCPATH) -I$(SNDOBJ)
! !endif
! 
! # compiler definitions and flags
! DEFS=-DFLEXT_SYS=2
! CFLAGS=-6 -O2 -OS -ff -tWD 
  
  
  
! # the rest can stay untouched
! # ----------------------------------------------
  
! # all the source files from the package
! !include make-files.txt
  
! !ifdef SNDOBJ
! SRCS=$(SRCS) $(SRCS_SNDOBJ)
! HDRS=$(HDRS) $(HDRS_SNDOBJ)
! !endif
  
- #default target
- all: $(OUTPATH)\$(NAME)-$(TARGET).lib
  
- # remove build
  clean:
! 	-del /s /q $(OUTPATH) > nul
! 	rmdir $(OUTPATH)
! 
! # -----------------------------------------------
! 
! OBJS= $(SRCS:.cpp=.obj)
! 
! #.PATH.obj=$(OUTPATH)
! 
! 
! DIR="/"
! 
! {$(SOURCE)}.cpp.obj:
! 	bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
! 
! $(OUTPATH):
! 	@if not exist $< mkdir $<
! 
! $(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OUTPATH)
! 
! $(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OBJS) 
! 	@-del "$<"
! 	cd $(OUTPATH)
! 	tlib "..\$<" +$(**: = +)
! 	cd ..
! !if $d(INSTDIR) && "$(INSTDIR)" != ""
! 	@-if not exist $(INSTDIR) mkdir $(INSTDIR)
! 	copy $< $(INSTDIR) >nul
! 	copy $(SOURCE)\*.h $(INSTDIR) >nul
! !endif
! 
! 
! 
! 
! 
! 
! 
! 
! 
--- 1,29 ----
  # flext - C++ layer for Max/MSP and pd (pure data) externals
! # Copyright (c) 2001-2004 Thomas Grill (gr at grrrr.org)
  #
! # Makefile for BCC++
  #
  #
! # IMPORTANT: Adjust some of the paths also in makefile-inc.bcc
  #
! # usage: make -f makefile.pd-bcc
  #
! # ---------------------------------------------------------------
  
+ all: flext flext_t flext_d flext_td
  
+ flext:
+ 	make /f make-inc.pd-bcc  NAME=$* 
  
! flext_d:
! 	make /f make-inc.pd-bcc  NAME=$* DEBUG=1
  
! flext_t:
! 	make /f make-inc.pd-bcc  NAME=$* THREADED=1
  
! flext_td:
! 	make /f make-inc.pd-bcc  NAME=$* THREADED=1 DEBUG=1
  
  
  clean:
! 	make /f make-inc.pd-bcc  clean

Index: config-pd-bcc.txt
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/config-pd-bcc.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** config-pd-bcc.txt	31 Mar 2003 02:32:16 -0000	1.6
--- config-pd-bcc.txt	18 Dec 2004 05:00:55 -0000	1.7
***************
*** 11,19 ****
  # where is the SndObj include directory? 
  # (leave blank or comment out to disable SndObj support)
! SNDOBJ=f:\prog\audio\sndobj\include
  
  # where is the STK include directory? 
  # (leave blank or comment out to disable STK support)
! STK=f:\pprog\audio\stk\include
  
  # build directory for flext libraries?
--- 11,19 ----
  # where is the SndObj include directory? 
  # (leave blank or comment out to disable SndObj support)
! SNDOBJ=c:\data\prog\audio\sndobj\include
  
  # where is the STK include directory? 
  # (leave blank or comment out to disable STK support)
! STK=c:\data\prog\audio\stk\include
  
  # build directory for flext libraries?
***************
*** 23,27 ****
  # (leave blank to omit installation)
  INSTDIR=$(PDPATH)\flext
- 
- 
- 
--- 23,24 ----

Index: build-pd-bcc.bat
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/build-pd-bcc.bat,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** build-pd-bcc.bat	30 Dec 2003 03:32:46 -0000	1.3
--- build-pd-bcc.bat	18 Dec 2004 05:00:54 -0000	1.4
***************
*** 1,3 ****
  @echo --- Building flext with BorlandC++ ---
  
! make -f makefile.pd-bcc
--- 1,3 ----
  @echo --- Building flext with BorlandC++ ---
  
! make -f makefile.pd-bcc %1 %2 %3 %4 %5 %6 %7 %8 %9

Index: flext.vcproj
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/flext.vcproj,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** flext.vcproj	17 Dec 2004 05:01:15 -0000	1.35
--- flext.vcproj	18 Dec 2004 05:00:55 -0000	1.36
***************
*** 176,180 ****
  				StringPooling="TRUE"
  				BasicRuntimeChecks="3"
! 				RuntimeLibrary="5"
  				RuntimeTypeInfo="TRUE"
  				UsePrecompiledHeader="2"
--- 176,180 ----
  				StringPooling="TRUE"
  				BasicRuntimeChecks="3"
! 				RuntimeLibrary="1"
  				RuntimeTypeInfo="TRUE"
  				UsePrecompiledHeader="2"
***************
*** 277,281 ****
  				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;FLEXT_SYS=2;FLEXT_USE_SIMD"
  				StringPooling="TRUE"
! 				RuntimeLibrary="4"
  				EnableFunctionLevelLinking="TRUE"
  				RuntimeTypeInfo="TRUE"
--- 277,281 ----
  				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;FLEXT_SYS=2;FLEXT_USE_SIMD"
  				StringPooling="TRUE"
! 				RuntimeLibrary="0"
  				EnableFunctionLevelLinking="TRUE"
  				RuntimeTypeInfo="TRUE"

Index: make-files.txt
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/make-files.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** make-files.txt	23 Apr 2004 22:14:11 -0000	1.10
--- make-files.txt	18 Dec 2004 05:00:55 -0000	1.11
***************
*** 1,2 ****
--- 1,4 ----
+ SRCDIR=source
+ 
  SRCS= \
  	flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp \

Index: config-pd-darwin.txt
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/config-pd-darwin.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** config-pd-darwin.txt	26 Oct 2004 20:03:23 -0000	1.18
--- config-pd-darwin.txt	18 Dec 2004 05:00:55 -0000	1.19
***************
*** 7,11 ****
  
  # where are the PD header files? (m_pd.h, m_imp.h, g_canvas.h)
! PDPATH=../../../pd/src
  
  # where is the SndObj include directory? 
--- 7,11 ----
  
  # where are the PD header files? (m_pd.h, m_imp.h, g_canvas.h)
! PDPATH=/Applications/Pd-0.38-0test10.app/Contents/Resources/src
  
  # where is the SndObj include directory? 
***************
*** 22,26 ****
  # where should flext libraries be installed?
  # (leave blank to omit installation)
! INSTDIR=/usr/local/lib/pd/flext
  
  # additional compiler flags
--- 22,26 ----
  # where should flext libraries be installed?
  # (leave blank to omit installation)
! INSTDIR=/Applications/Pd-0.38-0test10.app/Contents/Resources/flext
  
  # additional compiler flags





More information about the Pd-cvs mailing list