1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Migrated Borland compiler support to the free C++Builder compiler.

This commit is contained in:
abbotti 2002-03-19 10:20:01 -08:00
parent 47a8225eda
commit e3d711545b
4 changed files with 25 additions and 11 deletions

View File

@ -1,3 +1,11 @@
2002-03-19 Chin-yuan Kuo <sr1111111@yahoo.com.tw>
* configure.bat.in: Do not check %BORPATH% as C++Builder compiler
does not use it.
* windows/Makefile.src.bor:
* windows/config.h.bor:
Migrated to free (as in beer) C++Builder compiler.
2002-03-13 Ian Abbott <abbotti@mev.co.uk> 2002-03-13 Ian Abbott <abbotti@mev.co.uk>
* configure.bat: Removed (renamed to configure.bat.ini). * configure.bat: Removed (renamed to configure.bat.ini).

View File

@ -20,8 +20,7 @@ cls
if .%1 == .--borland goto :borland if .%1 == .--borland goto :borland
if .%1 == .--msvc goto :msvc if .%1 == .--msvc goto :msvc
if .%1 == .--watcom goto :watcom if .%1 == .--watcom goto :watcom
if not .%BORPATH% == . goto :borland goto :usage
if not .%1 == . goto :usage
:msvc :msvc
copy windows\config.h.ms src\config.h > nul copy windows\config.h.ms src\config.h > nul
@ -58,5 +57,5 @@ cd src
goto :end goto :end
:usage :usage
echo Usage: Configure [--borland | --msvc | --watcom] echo "Usage: configure [--borland | --msvc | --watcom]"
:end :end

View File

@ -2,16 +2,16 @@
## Makefile for use with watcom win95/winnt executable. ## Makefile for use with watcom win95/winnt executable.
CC=bcc32 CC=bcc32
LINK=tlink32 LINK=ilink32
LFLAGS= LFLAGS=
CFLAGS=-DWINDOWS -DHAVE_CONFIG_H -I. -H -H=wget.csm -w- CFLAGS=-DWINDOWS -DHAVE_CONFIG_H -I. -H -H=wget.csm -w- -O2
## variables ## variables
OBJS=cmpt.obj connect.obj fnmatch.obj ftp.obj ftp-basic.obj \ OBJS=cmpt.obj connect.obj fnmatch.obj ftp.obj ftp-basic.obj \
ftp-ls.obj ftp-opie.obj getopt.obj headers.obj host.obj html.obj \ ftp-ls.obj ftp-opie.obj getopt.obj headers.obj host.obj html-parse.obj html-url.obj \
http.obj init.obj log.obj main.obj gnu-md5.obj netrc.obj rbuf.obj \ http.obj init.obj log.obj main.obj gnu-md5.obj netrc.obj rbuf.obj \
alloca.obj \ safe-ctype.obj hash.obj progress.obj gen-md5.obj cookies.obj \
recur.obj res.obj retr.obj url.obj utils.obj version.obj mswindows.obj recur.obj res.obj retr.obj url.obj utils.obj version.obj mswindows.obj
LIBDIR=$(MAKEDIR)\..\lib LIBDIR=$(MAKEDIR)\..\lib
@ -20,7 +20,9 @@ wget.exe: $(OBJS)
$(LINK) @&&| $(LINK) @&&|
$(LFLAGS) -Tpe -ap -c + $(LFLAGS) -Tpe -ap -c +
$(LIBDIR)\c0x32.obj+ $(LIBDIR)\c0x32.obj+
alloca.obj+ cookies.obj+
hash.obj+
safe-ctype.obj+
version.obj+ version.obj+
utils.obj+ utils.obj+
url.obj+ url.obj+
@ -37,7 +39,8 @@ main.obj+
log.obj+ log.obj+
init.obj+ init.obj+
http.obj+ http.obj+
html.obj+ html-parse.obj+
html-url.obj+
host.obj+ host.obj+
headers.obj+ headers.obj+
getopt.obj+ getopt.obj+

View File

@ -19,6 +19,10 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#define HAVE_MEMMOVE
#define ftruncate chsize
#define inline __inline
/* Define if you have the <alloca.h> header file. */ /* Define if you have the <alloca.h> header file. */
#undef HAVE_ALLOCA_H #undef HAVE_ALLOCA_H
@ -33,7 +37,7 @@
#pragma alloca #pragma alloca
# else # else
# ifndef alloca /* predefined by HP cc +Olibcalls */ # ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca (); # include <malloc.h>
# endif # endif
# endif # endif
# endif # endif
@ -177,7 +181,7 @@ char *alloca ();
#define HAVE_BUILTIN_MD5 1 #define HAVE_BUILTIN_MD5 1
/* Define if you have the isatty function. */ /* Define if you have the isatty function. */
#undef HAVE_ISATTY #define HAVE_ISATTY
#endif /* CONFIG_H */ #endif /* CONFIG_H */