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

[svn] Various fixes by David Fritz.

* windows/Makefile.src.bor: Fix broken build rule.  Add clean target.

	* windows/Makefile.top.bor: Use tabs instead of spaces.  Ignore
	errors in clean rules.  Use lowercase filenames when building
	distribution .zip archive.

	* windows/config.h.bor:  Don't define HAVE_UINT32_T.

	* windows/Makefile.doc: Fix remaining instance of build rules
	indented with spaces instead of tabs.

	* windows/Makefile.src: Update copyright year.

	* windows/Makefile.top: Update copyright year.

	* windows/config.h.mingw (WGET_USE_STDARG, HAVE_SIG_ATOMIC_T): Define.

	* windows/config.h.ms (HAVE_STRPBRK, HAVE_LIMITS_H)
	(HAVE_LOCALE_H): Define.

	* windows/Makefile.watcom: Add /I. to CFLAGS.  Remove reference to
	specific Wget version from linker flags.  Add missing
	dependencies.
This commit is contained in:
hniksic 2004-05-09 14:08:38 -07:00
parent 53140e2696
commit 713ecfdca6
10 changed files with 100 additions and 44 deletions

View File

@ -1,3 +1,29 @@
2004-05-09 David Fritz <zeroxdf@att.net>
* windows/Makefile.src.bor: Fix broken build rule. Add clean target.
* windows/Makefile.top.bor: Use tabs instead of spaces. Ignore
errors in clean rules. Use lowercase filenames when building
distribution .zip archive.
* windows/config.h.bor: Don't define HAVE_UINT32_T.
* windows/Makefile.doc: Fix remaining instance of build rules
indented with spaces instead of tabs.
* windows/Makefile.src: Update copyright year.
* windows/Makefile.top: Update copyright year.
* windows/config.h.mingw (WGET_USE_STDARG, HAVE_SIG_ATOMIC_T): Define.
* windows/config.h.ms (HAVE_STRPBRK, HAVE_LIMITS_H)
(HAVE_LOCALE_H): Define.
* windows/Makefile.watcom: Add /I. to CFLAGS. Remove reference to
specific Wget version from linker flags. Add missing
dependencies.
2004-02-09 David Fritz <zeroxdf@att.net> 2004-02-09 David Fritz <zeroxdf@att.net>
* configure.bat.in: Don't clear the screen. * configure.bat.in: Don't clear the screen.

View File

@ -1,5 +1,5 @@
# Makefile for `wget' utility # Makefile for `wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -71,9 +71,9 @@ $(MAN): $(WGETPOD)
$(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@ $(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@
$(WGETHLP): $(WGETTEXI) $(SAMPLERCTEXI) $(WGETHLP): $(WGETTEXI) $(SAMPLERCTEXI)
$(MAKEINFO) --no-validate --no-warn --force \ $(MAKEINFO) --no-validate --no-warn --force \
--hpj wget.hpj --output wget.rtf $(WGETTEXI) --hpj wget.hpj --output wget.rtf $(WGETTEXI)
hcrtf -xn wget.hpj hcrtf -xn wget.hpj
clean: clean:
$(RM) *.bak $(RM) *.bak

View File

@ -1,5 +1,5 @@
# Makefile for `wget' utility for MSVC # Makefile for `wget' utility for MSVC
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,7 @@
## Compiler, linker, and lib stuff ## Compiler, linker, and lib stuff
## Makefile for use with Borland C++ for Win32 executable. ## Makefile for use with Borland C++ for Win32 executable.
RM=-del
CC=bcc32 CC=bcc32
LINK=ilink32 LINK=ilink32
@ -21,7 +22,7 @@ wget.exe: $(OBJS)
$(LINK) @&&| $(LINK) @&&|
$(LFLAGS) -Tpe -ap -c + $(LFLAGS) -Tpe -ap -c +
$(LIBDIR)\c0x32.obj+ $(LIBDIR)\c0x32.obj+
cmpt.obj cmpt.obj+
connect.obj+ connect.obj+
convert.obj+ convert.obj+
cookies.obj+ cookies.obj+
@ -50,8 +51,8 @@ safe-ctype.obj+
url.obj+ url.obj+
utils.obj+ utils.obj+
version.obj+ version.obj+
xmalloc.obj+ xmalloc.obj,+
$<,$* $<,$*,+
$(LIBDIR)\import32.lib+ $(LIBDIR)\import32.lib+
$(LIBDIR)\cw32.lib $(LIBDIR)\cw32.lib
@ -59,6 +60,18 @@ $(LIBDIR)\cw32.lib
| |
#
# Dependencies for cleanup
#
clean:
$(RM) *.bak
$(RM) *.obj
$(RM) *.exe
$(RM) *.map
$(RM) *.tds
o = .obj o = .obj
!include "..\windows\wget.dep" !include "..\windows\wget.dep"

View File

@ -1,5 +1,5 @@
# Makefile for `Wget' utility # Makefile for `Wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,5 @@
# Makefile for `Wget' utility # Makefile for `Wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -25,7 +25,7 @@
# file, but you are not obligated to do so. If you do not wish to do # file, but you are not obligated to do so. If you do not wish to do
# so, delete this exception statement from your version. # so, delete this exception statement from your version.
RM = del RM = -del
CP = copy CP = copy
# flags passed to recursive makes in subdirectories # flags passed to recursive makes in subdirectories
@ -37,39 +37,39 @@ SUBDIRS = src doc #util
all: Makefile $(SUBDIRS) all: Makefile $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
cd $@ cd $@
$(MAKE) $(MAKE)
cd .. cd ..
# install everything # install everything
install: install:
echo Just do it. echo Just do it.
clean: clean-recursive clean-top clean: clean-recursive clean-top
distclean: distclean-recursive distclean-top distclean: distclean-recursive distclean-top
realclean: realclean-recursive realclean-top realclean: realclean-recursive realclean-top
clean-top: clean-top:
$(RM) *.bak $(RM) *.bak
$(RM) *.zip $(RM) *.zip
distclean-top: clean-top distclean-top: clean-top
$(RM) Makefile $(RM) Makefile
$(RM) config.h $(RM) config.h
realclean-top: distclean-top realclean-top: distclean-top
clean-recursive distclean-recursive realclean-recursive: clean-recursive distclean-recursive realclean-recursive:
cd src cd src
$(MAKE) $(@:-recursive=) $(MAKE) $(@:-recursive=)
cd ..\\doc cd ..\\doc
$(MAKE) $(@:-recursive=) $(MAKE) $(@:-recursive=)
cd .. cd ..
bindist: wget.zip bindist: wget.zip
wget.zip: $(SUBDIRS) wget.zip: $(SUBDIRS)
$(RM) wget.zip $(RM) wget.zip
zip -Djl9 wget.zip AUTHORS COPYING INSTALL MACHINES MAILING-LIST NEWS README DOC\\sample.wgetrc zip -Djl9 wget.zip AUTHORS COPYING INSTALL MACHINES MAILING-LIST NEWS README doc/sample.wgetrc
zip -Dj9 wget.zip SRC\\WGET.EXE DOC\\WGET.HLP zip -Dj9 wget.zip src/wget.exe doc/wget.hlp

View File

@ -13,7 +13,7 @@ LINK=wlink
.BEFORE .BEFORE
@SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;. @SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
LFLAGS=op q sys nt op st=32767 op vers=1.7 op map op de 'GNU wget 1.7dev' de dw op symf LFLAGS=op q sys nt op st=32767 op map op de 'GNU Wget' de dw op symf
# #
# op q : quiet ! # op q : quiet !
# sys nt : producing an NT app # sys nt : producing an NT app
@ -25,7 +25,7 @@ LFLAGS=op q sys nt op st=32767 op vers=1.7 op map op de 'GNU wget 1.7dev' de dw
# op symf : place debug info in a separate wget.sym # op symf : place debug info in a separate wget.sym
# #
CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /DWINDOWS /DHAVE_CONFIG_H CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /I. /DWINDOWS /DHAVE_CONFIG_H
# ^^^^^^^^ wget will run on NT. We can safely assume a Pentium :-) # ^^^^^^^^ wget will run on NT. We can safely assume a Pentium :-)
# /zp4= pack structure members with this alignment # /zp4= pack structure members with this alignment
# /d1 = line number debug info # /d1 = line number debug info
@ -54,7 +54,8 @@ CFLAGS+= /os /d2
OBJS = cmpt.obj convert.obj connect.obj cookies.obj ftp.obj ftp-basic.obj & OBJS = cmpt.obj convert.obj connect.obj cookies.obj ftp.obj ftp-basic.obj &
ftp-ls.obj ftp-opie.obj getopt.obj hash.obj host.obj html-parse.obj html-url.obj & ftp-ls.obj ftp-opie.obj getopt.obj hash.obj host.obj html-parse.obj html-url.obj &
http.obj init.obj log.obj main.obj gen-md5.obj gnu-md5.obj netrc.obj progress.obj & http.obj init.obj log.obj main.obj gen-md5.obj gnu-md5.obj netrc.obj progress.obj &
recur.obj res.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj recur.obj res.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj &
xmalloc.obj
LIBFILES = LIBFILES =
# #

View File

@ -1,5 +1,6 @@
/* Configuration header file. /* Configuration header file.
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 1998, 2004
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -29,9 +30,9 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#define HAVE_SNPRINTF #define HAVE_SNPRINTF 1
#define HAVE_MEMMOVE #define HAVE_MEMMOVE 1
#define ftruncate chsize #define ftruncate chsize
#define inline __inline #define inline __inline
@ -78,7 +79,7 @@
#define USE_DIGEST 1 #define USE_DIGEST 1
/* Define if you want the debug output support compiled in. */ /* Define if you want the debug output support compiled in. */
#define ENABLE_DEBUG #define ENABLE_DEBUG 1
/* Define if you have sys/time.h header. */ /* Define if you have sys/time.h header. */
#undef HAVE_SYS_TIME_H #undef HAVE_SYS_TIME_H
@ -183,7 +184,7 @@
#define HAVE_BUILTIN_MD5 1 #define HAVE_BUILTIN_MD5 1
/* Define if you have the isatty function. */ /* Define if you have the isatty function. */
#define HAVE_ISATTY #define HAVE_ISATTY 1
/* Define to the length of short. */ /* Define to the length of short. */
#define SIZEOF_SHORT 2 #define SIZEOF_SHORT 2
@ -198,6 +199,6 @@
#define socklen_t int #define socklen_t int
/* Define if you have uint32_t. */ /* Define if you have uint32_t. */
#define HAVE_UINT32_T */ /* #define HAVE_UINT32_T */
#endif /* CONFIG_H */ #endif /* CONFIG_H */

View File

@ -1,6 +1,5 @@
/* src/config.h. Generated by configure. */
/* Configuration header file. /* Configuration header file.
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001 Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2004
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GNU Wget. This file is part of GNU Wget.
@ -38,6 +37,9 @@ so, delete this exception statement from your version. */
/* For MinGW GCC/Win32, alloca is defined in the <malloc.h> header file. */ /* For MinGW GCC/Win32, alloca is defined in the <malloc.h> header file. */
#include <malloc.h> #include <malloc.h>
/* Flag that C files should include <stdarg.h>, not <varargs.h>. */
#define WGET_USE_STDARG
/* Define to empty if the keyword does not work. */ /* Define to empty if the keyword does not work. */
/* #undef const */ /* #undef const */
@ -86,6 +88,9 @@ so, delete this exception statement from your version. */
/* Define if you want the debug output support compiled in. */ /* Define if you want the debug output support compiled in. */
#define ENABLE_DEBUG 1 #define ENABLE_DEBUG 1
/* Define to 1 if the system has the type `sig_atomic_t'. */
#define HAVE_SIG_ATOMIC_T 1
/* Define if you have sys/time.h header. */ /* Define if you have sys/time.h header. */
#define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TIME_H 1

View File

@ -1,5 +1,6 @@
/* Configuration header file. /* Configuration header file.
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 1998, 2004
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -55,7 +56,7 @@
#define USE_DIGEST 1 #define USE_DIGEST 1
/* Define if you want the debug output support compiled in. */ /* Define if you want the debug output support compiled in. */
#define ENABLE_DEBUG #define ENABLE_DEBUG 1
/* Define if you have sys/time.h header. */ /* Define if you have sys/time.h header. */
#undef HAVE_SYS_TIME_H #undef HAVE_SYS_TIME_H
@ -91,10 +92,13 @@
#define HAVE_STRERROR 1 #define HAVE_STRERROR 1
/* Define if you have the snprintf function. */ /* Define if you have the snprintf function. */
#define HAVE_SNPRINTF #define HAVE_SNPRINTF 1
/* Define if you have the vsnprintf function. */ /* Define if you have the vsnprintf function. */
#define HAVE_VSNPRINTF #define HAVE_VSNPRINTF 1
/* Define to 1 if you have the `strpbrk' function. */
#define HAVE_STRPBRK 1
/* Define if you have the strstr function. */ /* Define if you have the strstr function. */
#define HAVE_STRSTR 1 #define HAVE_STRSTR 1
@ -138,8 +142,8 @@
/* None except Digital Mars have sleep/usleep functions */ /* None except Digital Mars have sleep/usleep functions */
#if defined(__DMC__) #if defined(__DMC__)
#define HAVE_USLEEP #define HAVE_USLEEP 1
#define HAVE_SLEEP #define HAVE_SLEEP 1
#endif #endif
/* Define if you have the <utime.h> header file. */ /* Define if you have the <utime.h> header file. */
@ -148,6 +152,12 @@
/* Define if you have the <sys/utime.h> header file. */ /* Define if you have the <sys/utime.h> header file. */
#define HAVE_SYS_UTIME_H 1 #define HAVE_SYS_UTIME_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <sys/select.h> header file. */ /* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H #undef HAVE_SYS_SELECT_H
@ -155,7 +165,7 @@
#undef HAVE_PWD_H #undef HAVE_PWD_H
/* Define if you have the <signal.h> header file. */ /* Define if you have the <signal.h> header file. */
#define HAVE_SIGNAL_H #define HAVE_SIGNAL_H 1
/* Define to be the name of the operating system. */ /* Define to be the name of the operating system. */
#define OS_TYPE "Windows" #define OS_TYPE "Windows"