From 96091fd6f4b590bebf987cf0efd41b55c426ae0f Mon Sep 17 00:00:00 2001 From: skarg Date: Sun, 1 Jan 2006 21:33:01 +0000 Subject: [PATCH] configured for free Borland command line tools as the default. --- bacnet-stack/ports/win32/MAKEFILE.MAK | 7 +++---- bacnet-stack/ports/win32/readme.txt | 15 +++++++++++++++ bacnet-stack/ports/win32/setvars.bat | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 bacnet-stack/ports/win32/readme.txt diff --git a/bacnet-stack/ports/win32/MAKEFILE.MAK b/bacnet-stack/ports/win32/MAKEFILE.MAK index 7c22e99f..4983cce5 100644 --- a/bacnet-stack/ports/win32/MAKEFILE.MAK +++ b/bacnet-stack/ports/win32/MAKEFILE.MAK @@ -50,7 +50,8 @@ OBJS = $(SRCS:.c=.obj) # Compiler definitions # CC = $(BORLAND_DIR)\bin\bcc32 +bcc32.cfg -LINK = $(BORLAND_DIR)\bin\tlink32 +#LINK = $(BORLAND_DIR)\bin\tlink32 +LINK = $(BORLAND_DIR)\bin\ilink32 TLIB = $(BORLAND_DIR)\bin\tlib # @@ -65,8 +66,6 @@ CFLAGS = $(INCL_DIRS) $(CS_FLAGS) $(DEFINES) # C_LIB_DIR = $(BORLAND_DIR)\lib -LIBDIR = $(C_LIB_DIR) - LIBS = $(C_LIB_DIR)\IMPORT32.lib \ $(C_LIB_DIR)\CW32MT.lib @@ -84,7 +83,7 @@ all : bcc32.cfg $(PRODUCT_EXE) # need a temp response file (@&&) because command line is too long $(PRODUCT_EXE) : $(OBJS) @echo Running Linker for $(PRODUCT_EXE) - $(LINK) -L$(LINKER_LIB) -m -c -s -v @&&| # temp response file, starts with | + $(LINK) -L$(C_LIB_DIR) -m -c -s -v @&&| # temp response file, starts with | $(BORLAND_DIR)\lib\c0x32.obj $** # $** lists each dependency $< $*.map diff --git a/bacnet-stack/ports/win32/readme.txt b/bacnet-stack/ports/win32/readme.txt new file mode 100644 index 00000000..a5bd7030 --- /dev/null +++ b/bacnet-stack/ports/win32/readme.txt @@ -0,0 +1,15 @@ +BACnet Stack - Win32 + +This directory contains a demo program that compiles with a Win32 compiler. +It was tested with the freely downloadable Borland C++ 5.5, as well as +Borland C++ 5 and Visual C++ 6.0. + +The makefile.mak file is used with the Borland command line tools. +Run setvars.bat to configure the environment for the Borland tools. +Edit it if necessary to set the correct location of your tools. + +The bacnet.ide file is used with the Borland IDE. + +The bacnet directory is used with Visual C++ 6 tools, and there is a +workspace file bacnet.dsw that is used to compile the demo program. + diff --git a/bacnet-stack/ports/win32/setvars.bat b/bacnet-stack/ports/win32/setvars.bat index aa819553..6a804123 100644 --- a/bacnet-stack/ports/win32/setvars.bat +++ b/bacnet-stack/ports/win32/setvars.bat @@ -1,2 +1,2 @@ -set BORLAND_DIR=\bc5 +set BORLAND_DIR=\bcc55