me again (how tedious)....... anyway, so the configure-pd-bcc.txt has been editd like so:
# flext - C++ layer for Max/MSP and pd (pure data) externals # Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net)
where is PD? PDPATH=C:\pd\
where is BorlandC++? BCCPATH=C:\Borland\BCC55\Bin\bcc32.exe
# where is the SndObj include directory? #
# where is the STK include directory? #
build directory for flext libraries? OUTPATH=.\pd-bcc
where should flext libraries be installed? (C:\pd\flext-0.4.5-pd-win\flext) INSTDIR=$(PDPATH)\flext
and the makefile.pd-bcc looks like this:
# flext - C++ layer for Max/MSP and pd (pure data) externals # Copyright (c) 2001-2003 Thomas Grill (xovo@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
when the batch file build-pd-bcc.bat is double clicked it shows this:
--- Building flext with BorlandC++ ---
C:\pd\flext-0.4.5-pd-win\flext> C:\pd\flext-0.4.5-pd-win\flext>make -f makefile.pd-bcc Bad command or file name
C:\pd\flext-0.4.5-pd-win\flext>
which made me think there was no interatction between the borland compiler and the batch file, so i created a new batch file which had this to say:
C:\Borland\BCC55\Bin\bcc32.exe C:\pd\flext-0.4.5-pd-win\flext>make -f makefile.pd-bcc
when i use this the compiler says this:
C:\pd\flext-0.4.5-pd-win\flext>C:\Borland\BCC55\Bin\bcc32.exe C:\pd\flext-0.4.5- pd-win\flext>make -f makefile.pd-bcc
C:\pd\flext-0.4.5-pd-win\flext>
and spits out a make file which says the following horrible things:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Error E2194: Could not find file 'C:\pd\flext-0.4.5-pd-win\flext.cpp' makefile.pd-bcc: Error E2048 makefile.pd-bcc 1: Unknown preprocessor directive: 'flext' Error E2048 makefile.pd-bcc 2: Unknown preprocessor directive: 'Copyright' Error E2048 makefile.pd-bcc 4: Unknown preprocessor directive: 'Makefile' Error E2048 makefile.pd-bcc 6: Unknown preprocessor directive: 'usage' Error E2048 makefile.pd-bcc 8: Unknown preprocessor directive: '' Error E2048 makefile.pd-bcc 10: Unknown preprocessor directive: 'note' Error E2048 makefile.pd-bcc 12: Unknown preprocessor directive: '' Error E2040 makefile.pd-bcc 14: Declaration terminated incorrectly Error E2206 makefile.pd-bcc 19: Illegal character '#' (0x23) Error E2206 makefile.pd-bcc 22: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 22: Illegal character '' (0x5c) Error E2206 makefile.pd-bcc 22: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 22: Illegal character '' (0x5c) Error E2206 makefile.pd-bcc 22: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 25: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 25: Illegal character '$' (0x24) Error E2048 makefile.pd-bcc 34: Unknown preprocessor directive: 'the' Error E2048 makefile.pd-bcc 35: Unknown preprocessor directive: '' Error E2048 makefile.pd-bcc 37: Unknown preprocessor directive: 'all' Error E2206 makefile.pd-bcc 41: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 41: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 42: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 42: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 46: Illegal character '$' (0x24) Error E2206 makefile.pd-bcc 46: Illegal character '' (0x5c) Error E2228 makefile.pd-bcc 46: Too many error or warning messages *** 26 errors in Compile ***
as it happens if i just put the following text in my batch file: C:\Borland\BCC55\Bin\bcc32.exe -f makefile.pd-bcc all the above metioned text appears in the command line window.....
so has anyone got any words of wisdom (i warned you it would be tedious)......
oh well ;-)
=====
___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html