+2003-02-10 Borut Razem <borut.razem@siol.net>
+
+ * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
+ support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
+ * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
+ device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
+ support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
+ src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
+ src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
+ src/z80/Makefile.bcc: Borland Makefile cleanup
+ * as/z80/Makefile.bcc: Added Borland Makefile
+
2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
* doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
Building SDCC with Borland C++ under Windows
-1: Build SDCC under Cygwin as documented in cygwininst.txt (this is
-necessary in order to run all the necessary configuration steps).
-
-2: From the sdcc directory, run the command "make -f Makefile.bcc". This
+1: From the sdcc directory, run the command "make -f Makefile.bcc". This
should regenerate all the .exe files in the bin directory except for
sdcdb.exe (which currently doesn't build under Borland C++).
-3: If you modify any source files and need to rebuild, be aware that the
+2: If you modify any source files and need to rebuild, be aware that the
dependancies may not be correctly calculated. The safest option is to
delete all .obj files and run the build again. From a Cygwin BASH
prompt, this can easily be done with the commmand:
- 'find . -name "*.obj" -print | xargs rm'
+$ find . \( -name '*.obj' -o -name '*.lib' -o -name '*.rul' \) -print -exec rm {} \;
+
+or on Windows NT/2000/XP from the command prompt with the commmand:
+
+del /s *.obj *.lib *.rul
from the sdcc directory.
#include <ctype.h>
#include <assert.h>
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
typedef unsigned char Uint8 ;
typedef unsigned Uint16 ;
#undef SDCC_VERSION_P
#undef SDCC_VERSION_STR
-/* MSVC 6 does not have __FUNCTION__ preprocessor macro defined */
-
-#if defined(_MSC_VER) && (_MSC_VER < 1300)
-#define __FUNCTION__ __FILE__
+#ifndef __FUNCTION__
+#define __FUNCTION__ __FILE__
#endif
#undef PREFIX
#define SDCCSET_H
#include <stdarg.h>
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
#include "sdcc_vc.h"
#else
#include "sdccconf.h"
/* config.in. Generated automatically from configure.in by autoheader. */
-#ifdef __BORLANDC__
-
-#include "borland.h"
-
-#else
/* Define to empty if the keyword does not work. */
#undef const
#define const
#endif
#endif
-#endif /* !__BORLANDC__ */