From: borutr Date: Mon, 10 Feb 2003 22:19:26 +0000 (+0000) Subject: Borland C++ build doesn't depend on Cygwin configure X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0977223a96695893176916efbdfcbb3f9e26759b;p=fw%2Fsdcc Borland C++ build doesn't depend on Cygwin configure git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2242 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 2dd05ace..5a0f28f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2003-02-10 Borut Razem + + * 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 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" diff --git a/doc/bccinst.txt b/doc/bccinst.txt index e05406d5..a808722a 100644 --- a/doc/bccinst.txt +++ b/doc/bccinst.txt @@ -1,17 +1,18 @@ 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. diff --git a/packihx/packihx.c b/packihx/packihx.c index 6dbb180b..a9cf4e7a 100644 --- a/packihx/packihx.c +++ b/packihx/packihx.c @@ -14,7 +14,7 @@ #include #include -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) typedef unsigned char Uint8 ; typedef unsigned Uint16 ; diff --git a/sdcc_vc_in.h b/sdcc_vc_in.h index bcd19cd6..8115eb91 100644 --- a/sdcc_vc_in.h +++ b/sdcc_vc_in.h @@ -7,10 +7,8 @@ #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 diff --git a/src/SDCCset.h b/src/SDCCset.h index ea503e57..c3bd289c 100644 --- a/src/SDCCset.h +++ b/src/SDCCset.h @@ -26,7 +26,7 @@ #define SDCCSET_H #include -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #include "sdcc_vc.h" #else #include "sdccconf.h" diff --git a/support/cpp2/config.in b/support/cpp2/config.in index 25540a86..1a3552c7 100644 --- a/support/cpp2/config.in +++ b/support/cpp2/config.in @@ -1,10 +1,5 @@ /* 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 @@ -389,4 +384,3 @@ #define const #endif #endif -#endif /* !__BORLANDC__ */