dslinux/user/wget/windows Makefile.doc Makefile.in Makefile.src Makefile.src.bor Makefile.top Makefile.top.bor Makefile.watcom README config.h.bor config.h.ms wget.dep

amadeus dslinux_amadeus at user.in-berlin.de
Thu Aug 31 11:32:48 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/wget/windows
In directory antilope:/tmp/cvs-serv14346/user/wget/windows

Added Files:
	Makefile.doc Makefile.in Makefile.src Makefile.src.bor 
	Makefile.top Makefile.top.bor Makefile.watcom README 
	config.h.bor config.h.ms wget.dep 
Log Message:
Add some more applications

--- NEW FILE: wget.dep ---
alloca$o: alloca.c config.h
ansi2knr$o: ansi2knr.c config.h
cmpt$o: cmpt.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h
connect$o: connect.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h connect.h host.h
convert$o: convert.c config.h wget.h convert.h url.h recur.h utils.h hash.h
cookies$o: cookies.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h cookies.h hash.h url.h utils.h
ftp-basic$o: ftp-basic.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h rbuf.h connect.h host.h ftp.h
ftp-ls$o: ftp-ls.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h ftp.h url.h
ftp-opie$o: ftp-opie.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h gen-md5.h
ftp$o: ftp.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h netrc.h
gen-md5$o: gen-md5.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h gen-md5.h
gen_sslfunc$o: gen_sslfunc.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h connect.h host.h url.h
getopt$o: getopt.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h getopt.h
gnu-md5$o: gnu-md5.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h gnu-md5.h
hash$o: hash.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h hash.h
headers$o: headers.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h connect.h host.h rbuf.h headers.h
host$o: host.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h host.h url.h hash.h
html-parse$o: html-parse.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h html-parse.h
html-url$o: html-url.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h html-parse.h url.h utils.h
http$o: http.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h netrc.h gen-md5.h
init$o: init.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h init.h host.h recur.h netrc.h cookies.h progress.h
log$o: log.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h
main$o: main.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h getopt.h init.h retr.h rbuf.h recur.h host.h gen_sslfunc.h getopt.h
mswindows$o: mswindows.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h url.h
netrc$o: netrc.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h netrc.h init.h
progress$o: progress.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h retr.h rbuf.h
rbuf$o: rbuf.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h rbuf.h connect.h host.h
recur$o: recur.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h url.h recur.h utils.h retr.h rbuf.h ftp.h host.h hash.h
retr$o: retr.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h retr.h rbuf.h url.h recur.h ftp.h host.h connect.h hash.h
safe-ctype$o: safe-ctype.c config.h safe-ctype.h
snprintf$o: snprintf.c config.h safe-ctype.h
url$o: url.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h url.h host.h hash.h
utils$o: utils.c config.h wget.h sysdep.h mswindows.h options.h safe-ctype.h utils.h hash.h
version$o: version.c

--- NEW FILE: Makefile.watcom ---
## Compiler, linker, and lib stuff
## Makefile for use with watcom win95/winnt executable.
#
# Copy this file to the ..\src directory (maybe rename to Makefile).
#

CC=wcc386 /zq
LINK=wlink

#
# Note: this will wipe anything in the env.var PATH !
#
.BEFORE
	@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
#
# op q              : quiet !
# sys nt            : producing an NT app
# op st(ack)=32768  : stack size
# op vers(ion)=1.7  : "Image version" in the EXE header ( major.minor )
# op map            : produce a map file
# op de             : textual description, placed in the executable
# de dw             : debug info on Dwarf format
# op symf           : place debug info in a separate wget.sym
#

CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /DWINDOWS /DHAVE_CONFIG_H
#                    ^^^^^^^^ wget will run on NT. We can safely assume a Pentium :-)
# /zp4= pack structure members with this alignment
# /d1 = line number debug info
# /w4 = warning level
# /fpd= Pentium floatingpoint bug workaround
# /5s = Pentium stack-based calling
# /fp5= Pentium floating point
# /bm = build multi-threaded
# /mf = flat memory model
# /bt = "build target" (nt)

#
# Choose one of the following three:
# /od /d2  for no optimization, full debug info
# /os /d2  to optimize for size, full debug info (or /d1 for line number debug info)
# /othexan for "heavy-duty" optimizations, no debug info
#
#CFLAGS+= /od /d2
CFLAGS+= /os /d2
#CFLAGS+= /othexan
#       ^^-- mind the gap !!

#CFLAGS+= /DDEBUG_MALLOC
#       ^^-- mind the gap !!

OBJS = cmpt.obj convert.obj connect.obj cookies.obj ftp.obj ftp-basic.obj  &
      ftp-ls.obj ftp-opie.obj getopt.obj hash.obj headers.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 rbuf.obj  &
      recur.obj res.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj

LIBFILES = 
#
# Add extra libs like this :
#LIBFILES = LIBF lz32.lib,gdi32.lib

BINNAME=wget.exe

all : config.h $(BINNAME) .SYMBOLIC

#
# We use config.h.ms
#
config.h : ..\windows\config.h.ms
	copy $[@ $^@

#
# Note: this will pass all the OBJ files to wlink,
# resulting in a very long command line (410 chars, last I counted)
# This might fail on Win9x (works with NT's cmd.exe)
#
$(BINNAME): $(OBJS) Makefile
	$(LINK) $(LFLAGS) NAME $(BINNAME) FILE { $(OBJS) } $(LIBPATH) $(LIBFILES)


#
# Explicit dependencies not needed because Watcom C stores
# dependency information in the object file. Wmake can read this information
# if prompted by .AUTODEPEND
#

.c.obj: .AUTODEPEND
	$(CC) $(CFLAGS) $[@

.c.i: .AUTODEPEND
	$(CC) $(CFLAGS) -fo=$@ /Pc $[@


--- NEW FILE: Makefile.src ---
# Makefile for `wget' utility for MSVC 4.0
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.

# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.

#
# Version: 1.4.4
#

#Comment these if you don't have openssl available - however https
#won't work.
SSLDEFS	=	/DHAVE_SSL
SSLLIBS	=	libeay32.lib ssleay32.lib
SSLSRC	=	gen_sslfunc.c
SSLOBJ	=	gen_sslfunc$o

SHELL = command

VPATH       = .
o           = .obj
OUTDIR      = .

CC       = cl
LD       = link

CFLAGS   = /nologo /MT /W0 /O2
#DEBUGCF  = /DENABLE_DEBUG /Zi /Od #/Fd /FR
CPPFLAGS = 
DEFS     = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\"
LDFLAGS  = /subsystem:console /incremental:no /warn:3
#DEBUGLF  = /pdb:wget.pdb /debug /debugtype:cv /map:wget.map /opt:noref
LIBS     = kernel32.lib advapi32.lib wsock32.lib user32.lib

INCLUDES = /I.

COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS)
LINK    = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@

#INSTALL = @INSTALL@
#INSTALL_PROGRAM = @INSTALL_PROGRAM@

RM      = del

SRC = cmpt.c safe-ctype.c convert.c connect.c host.c http.c netrc.c \
      ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c headers.c \
      html-parse.c html-url.c progress.c retr.c recur.c res.c url.c cookies.c \
      init.c utils.c main.c version.c mswindows.c gen-md5.c \
      gnu-md5.c rbuf.c log.c $(SSLSRC)

OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \
      ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o headers$o \
      html-parse$o html-url$o progress$o retr$o recur$o res$o url$o cookies$o \
      init$o utils$o main$o version$o mswindows$o gen-md5$o gnu-md5$o\
      rbuf$o log$o $(SSLOBJ)

.SUFFIXES: .c .obj

.c.obj:
        $(COMPILE) /c $<

# Dependencies for building

wget: wget.exe

wget.exe: $(OBJ)
         $(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
<<
        ren wget.exe WGET.EXE


#
# Dependencies for cleanup
#

clean:
        $(RM) *.obj
        $(RM) *.exe
        $(RM) *.bak
        $(RM) *.pdb
        $(RM) *.map
        $(RM) config.h

distclean: clean
	$(RM) Makefile

realclean: distclean
	$(RM) TAGS

# Dependencies:

!include "..\windows\wget.dep"

--- NEW FILE: Makefile.src.bor ---
## Compiler, linker, and lib stuff
## Makefile for use with Borland C++ for Win32 executable.

CC=bcc32
LINK=ilink32

LFLAGS=
CFLAGS=-DWINDOWS -DHAVE_CONFIG_H -I. -w- -O2

## variables
OBJS=cmpt.obj connect.obj convert.obj ftp.obj ftp-basic.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  \
      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

LIBDIR=$(MAKEDIR)\..\lib

wget.exe: $(OBJS)
  $(LINK) @&&|
$(LFLAGS) -Tpe -ap -c +
$(LIBDIR)\c0x32.obj+
convert.obj+
cookies.obj+
hash.obj+
safe-ctype.obj+
version.obj+
utils.obj+
url.obj+
retr.obj+
res.obj+
recur.obj+
rbuf.obj+
progress.obj+
netrc.obj+
mswindows.obj+
gnu-md5.obj+
gen-md5.obj+
main.obj+
log.obj+
init.obj+
http.obj+
html-parse.obj+
html-url.obj+
host.obj+
headers.obj+
getopt.obj+
ftp-opie.obj+
ftp-ls.obj+
ftp-basic.obj+
ftp.obj+
connect.obj+
cmpt.obj
$<,$*
$(LIBDIR)\import32.lib+
$(LIBDIR)\cw32.lib



|

o = .obj

!include "..\windows\wget.dep"

--- NEW FILE: Makefile.in ---
# Makefile for `wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.

# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.

#
# Version: @VERSION@
#

# This file is just a stub, so that the build subprocess in `windows'
# succeeds.  This directory is not used under Unix builds, normally
# affected by Makefile.in.

SHELL = /bin/sh

top_builddir = ..

srcdir = @srcdir@
VPATH  = @srcdir@

RM = rm -f

all:

clean:

distclean: clean
	$(RM) Makefile

realclean: distclean


--- NEW FILE: config.h.bor ---
/* Configuration header file.
   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.

   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
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   In addition, as a special exception, the Free Software Foundation
   gives permission to link the code of its release of Wget with the
   OpenSSL project's "OpenSSL" library (or with modified versions of it
   that use the same license as the "OpenSSL" library), and distribute
   the linked executables.  You must obey the GNU General Public License
   in all respects for all of the code used other than "OpenSSL".  If you
   modify this file, you may extend this exception to your version of the
   file, but you are not obligated to do so.  If you do not wish to do
   so, delete this exception statement from your version.  */


#ifndef CONFIG_H
#define CONFIG_H

#define HAVE_SNPRINTF

#define HAVE_MEMMOVE
#define ftruncate chsize
#define inline __inline

/* Flag that C files should include <stdarg.h>, not <varargs.h>.  */
#define WGET_USE_STDARG

/* Define if the free Borland C++Builder 5.5 command-line compiler is used,
   because its utime() has a bug. */
#define HACK_BCC_UTIME_BUG

#ifdef HACK_BCC_UTIME_BUG
#define utime borland_utime
#endif

/* Define if you have the <alloca.h> header file.  */
#undef HAVE_ALLOCA_H

/* For Borland C++ 5.5, alloca is defined in the <malloc.h> header file. */
#include <malloc.h>

/* Define to empty if the keyword does not work.  */
/* #undef const */

/* Define to `unsigned' if <sys/types.h> doesn't define.  */
/* #undef size_t */

/* Define if you have the ANSI C header files.  */
#define STDC_HEADERS 1

/* Define as the return type of signal handlers (int or void).  */
#define RETSIGTYPE int

/* Define if your architecture is big endian (with the most
   significant byte first).  */
#undef WORDS_BIGENDIAN

/* Define this if you want the NLS support.  */
#undef ENABLE_NLS

/* Define if you want the FTP support for Opie compiled in.  */
#define USE_OPIE 1

/* Define if you want the HTTP Digest Authorization compiled in.  */
#define USE_DIGEST 1

/* Define if you want the debug output support compiled in.  */
#define ENABLE_DEBUG

/* Define if you have sys/time.h header. */
#undef HAVE_SYS_TIME_H

/* Define if you can safely include both <sys/time.h> and <time.h>.  */
#undef TIME_WITH_SYS_TIME

/* Define if you have struct utimbuf.  */
#define HAVE_STRUCT_UTIMBUF 1

/* Define if you have the gethostbyname function.  */
/* #undef HAVE_GETHOSTBYNAME */

/* Define if you have the uname function.  */
#undef HAVE_UNAME

/* Define if you have the gethostname function.  */
#define HAVE_GETHOSTNAME 1

/* Define if you have the select function.  */
#define HAVE_SELECT 1

/* Define if you have the gettimeofday function.  */
#undef HAVE_GETTIMEOFDAY

/* Define if you have the strdup function.  */
#define HAVE_STRDUP 1

/* Define if you have the sys/utsname.h header. */
#undef HAVE_SYS_UTSNAME_H

/* Define if you have the strerror function. */
#define HAVE_STRERROR 1

/* Define if you have the strstr function. */
#define HAVE_STRSTR 1

/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1

/* Define if you have the strncasecmp function. */
#define HAVE_STRNCASECMP 1

/* Define if you have the strptime function. */
#undef HAVE_STRPTIME

/* Define if you have the mktime function. */
#define HAVE_MKTIME 1

/* Define if you have the symlink function. */
#undef HAVE_SYMLINK

/* Define if you have the signal function. */
#undef HAVE_SIGNAL

/* Define if you have the <stdarg.h> header file.  */
#define HAVE_STDARG_H 1

/* Define if you have the <stdlib.h> header file.  */
#define HAVE_STDLIB_H 1

/* Define if you have the <string.h> header file.  */
#define HAVE_STRING_H 1

/* Define if you have the <unistd.h> header file.  */
/* #define HAVE_UNISTD_H 1 */
#undef HAVE_UNISTD_H

/* Define if you have the <utime.h> header file.  */
#define HAVE_UTIME_H 1

/* Define if you have the <sys/utime.h> header file.  */
#undef HAVE_SYS_UTIME_H

/* Define if you have the <sys/select.h> header file.  */
#undef HAVE_SYS_SELECT_H

/* Define if you have the <pwd.h> header file.  */
#undef HAVE_PWD_H

/* Define if you have the <signal.h> header file.  */
#undef HAVE_SIGNAL_H

/* Define to be the name of the operating system.  */
#define OS_TYPE "Windows"

#define CTRLBREAK_BACKGND 1

/* Define if you wish to compile with socks support.  */
/* #undef HAVE_SOCKS */

/* Define to 1 if ANSI function prototypes are usable.  */
#define PROTOTYPES 1

/* Define if we're compiling in support for MD5.  */
#define HAVE_MD5 1

/* Define if we're using Solaris libmd5.  */
#undef HAVE_SOLARIS_MD5

/* Define if we're using builtin (GNU) md5.c.  */
#define HAVE_BUILTIN_MD5 1

/* Define if you have the isatty function.  */
#define HAVE_ISATTY

/* Define to the length of short. */
#define SIZEOF_SHORT 2

/* Define to the length of int. */
#define SIZEOF_INT 4

/* Define to the length of long. */
#define SIZEOF_LONG 4

/* Defined to int or size_t on systems without socklen_t.  */
#define socklen_t int

/* Define if you have uint32_t.  */
#define HAVE_UINT32_T */

#endif /* CONFIG_H */

--- NEW FILE: Makefile.top.bor ---
# Makefile for `Wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.

# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.

RM = del
CP = copy

# flags passed to recursive makes in subdirectories

# subdirectories in the distribution
SUBDIRS = src doc #util

# default target
all: Makefile $(SUBDIRS)

$(SUBDIRS): 
        cd $@
        $(MAKE)
        cd ..

# install everything
install:
        echo Just do it.

clean:		clean-recursive		clean-top
distclean:	distclean-recursive	distclean-top
realclean:	realclean-recursive	realclean-top

clean-top:
        $(RM) *.bak
        $(RM) *.zip

distclean-top: clean-top
        $(RM) Makefile
        $(RM) config.h

realclean-top: distclean-top

clean-recursive distclean-recursive realclean-recursive:
        cd src
        $(MAKE) $(@:-recursive=)
        cd ..\\doc
        $(MAKE) $(@:-recursive=)
        cd ..

bindist: wget.zip

wget.zip: $(SUBDIRS)
        $(RM) wget.zip
        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


--- NEW FILE: config.h.ms ---
/* Configuration header file.
   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.

   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
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

   In addition, as a special exception, the Free Software Foundation
   gives permission to link the code of its release of Wget with the
   OpenSSL project's "OpenSSL" library (or with modified versions of it
   that use the same license as the "OpenSSL" library), and distribute
   the linked executables.  You must obey the GNU General Public License
   in all respects for all of the code used other than "OpenSSL".  If you
   modify this file, you may extend this exception to your version of the
   file, but you are not obligated to do so.  If you do not wish to do
   so, delete this exception statement from your version.  */


#ifndef CONFIG_H
#define CONFIG_H

/* Define if you have the <alloca.h> header file.  */
#undef HAVE_ALLOCA_H

/* Define to empty if the keyword does not work.  */
/* #undef const */

/* Define to `unsigned' if <sys/types.h> doesn't define.  */
/* #undef size_t */

/* Define if you have the ANSI C header files.  */
#define STDC_HEADERS 1

/* Define as the return type of signal handlers (int or void).  */
#define RETSIGTYPE int

/* Define if your architecture is big endian (with the most
   significant byte first).  */
#undef WORDS_BIGENDIAN

/* Define if you want the FTP support for Opie compiled in.  */
#define USE_OPIE 1

/* Define if you want the HTTP Digest Authorization compiled in.  */
#define USE_DIGEST 1

/* Define if you want the debug output support compiled in.  */
#define ENABLE_DEBUG

/* Define if you have sys/time.h header. */
#undef HAVE_SYS_TIME_H

/* Define if you can safely include both <sys/time.h> and <time.h>.  */
#undef TIME_WITH_SYS_TIME

/* Define if you have struct utimbuf.  */
#define HAVE_STRUCT_UTIMBUF 1

/* Define if you have the gethostbyname function.  */
/* #undef HAVE_GETHOSTBYNAME */

/* Define if you have the uname function.  */
#undef HAVE_UNAME

/* Define if you have the gethostname function.  */
#define HAVE_GETHOSTNAME 1

/* Define if you have the select function.  */
#define HAVE_SELECT 1

/* Define if you have the gettimeofday function.  */
#undef HAVE_GETTIMEOFDAY

/* Define if you have the strdup function.  */
#define HAVE_STRDUP 1

/* Define if you have the sys/utsname.h header. */
#undef HAVE_SYS_UTSNAME_H

/* Define if you have the strerror function. */
#define HAVE_STRERROR 1

/* Define if you have the snprintf function.  */
#define HAVE_SNPRINTF

/* Define if you have the vsnprintf function.  */
#define HAVE_VSNPRINTF

/* Define if you have the strstr function. */
#define HAVE_STRSTR 1

/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1

/* Define if you have the strncasecmp function. */
#define HAVE_STRNCASECMP 1

/* Define if you have the strptime function. */
#undef HAVE_STRPTIME

/* Define if you have the mktime function. */
#define HAVE_MKTIME 1

/* Define if you have the symlink function. */
#undef HAVE_SYMLINK

/* Define if you have the signal function. */
#undef HAVE_SIGNAL

/* Define if you have the <stdarg.h> header file.  */
#define HAVE_STDARG_H 1

/* Use ANSI-style stdargs regardless of whether the compiler bothers
   to define __STDC__.  (Many don't when extensions are enabled.)
   This define used to be in mswindows.h, but wheren't making any use there */
#define WGET_USE_STDARG

/* Define if you have the <stdlib.h> header file.  */
#define HAVE_STDLIB_H 1

/* Define if you have the <string.h> header file.  */
#define HAVE_STRING_H 1

/* Define if you have the <unistd.h> header file.  */
#if !defined(_MSC_VER)
#undef HAVE_UNISTD_H
#endif

/* None except Digital Mars have sleep/usleep functions */
#if defined(__DMC__)
#define HAVE_USLEEP
#define HAVE_SLEEP
#endif

/* Define if you have the <utime.h> header file.  */
#undef HAVE_UTIME_H

/* Define if you have the <sys/utime.h> header file.  */
#define HAVE_SYS_UTIME_H 1

/* Define if you have the <sys/select.h> header file.  */
#undef HAVE_SYS_SELECT_H

/* Define if you have the <pwd.h> header file.  */
#undef HAVE_PWD_H

/* Define if you have the <signal.h> header file.  */
#define HAVE_SIGNAL_H

/* Define to be the name of the operating system.  */
#define OS_TYPE "Windows"

#define CTRLBREAK_BACKGND 1

/* Define if you wish to compile with socks support.  */
/* #undef HAVE_SOCKS */

/* Define to 1 if ANSI function prototypes are usable.  */
#define PROTOTYPES 1

/* Define if we're compiling in support for MD5.  */
#define HAVE_MD5 1

/* Define if we're using Solaris libmd5.  */
#undef HAVE_SOLARIS_MD5

/* Define if we're using builtin (GNU) md5.c.  */
#define HAVE_BUILTIN_MD5 1

/* Work around VC 6 issues */
#define inline __inline
#define ftruncate chsize

/* Define if you have the isatty function.  */
#define HAVE_ISATTY 1

/* Define if you have the memmove function */
#define HAVE_MEMMOVE 1

/* Define to the length of short. */
#define SIZEOF_SHORT 2

/* Define to the length of int. */
#define SIZEOF_INT 4

/* Define to the length of long. */
#define SIZEOF_LONG 4

/* Defined to int or size_t on systems without socklen_t.  */
#define socklen_t int

/* Define if you have uint32_t.  */
#undef HAVE_UINT32_T

#endif /* CONFIG_H */

--- NEW FILE: Makefile.top ---
# Makefile for `Wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.

# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.

RM = del
CP = copy

# flags passed to recursive makes in subdirectories

# subdirectories in the distribution
SUBDIRS = src doc #util

# default target
all: Makefile $(SUBDIRS)

$(SUBDIRS): FORCE
        cd $@
        $(MAKE)
        cd ..

FORCE:

# install everything
install:
        echo Just do it.

clean:		clean-recursive		clean-top
distclean:	distclean-recursive	distclean-top
realclean:	realclean-recursive	realclean-top

clean-top:
        $(RM) *.bak
        $(RM) *.zip

distclean-top: clean-top
        $(RM) Makefile
        $(RM) config.h

realclean-top: distclean-top

clean-recursive distclean-recursive realclean-recursive:
        cd src
        $(MAKE) $(@:-recursive=)
        cd ..\\doc
        $(MAKE) $(@:-recursive=)
        cd ..

bindist: wget.zip

wget.zip: $(SUBDIRS)
        $(RM) wget.zip
        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


--- NEW FILE: README ---
                                                           -*- text -*-

To build Wget with VC++ run configure.bat (in the main wget directory), 
and then run nmake. At a certain point in time wget exposed some 
compiler bugs in VC++ 5.0; VC++ 6.0 sp 5 is known to be safe. However 
read the rest of this document before continuing.

For VC++ the current default is to configure wget with ssl support; 
first get openssl (http://www.openssl.org), compile it and install 
relevant headers and libraries where your compiler can find them; 
currently this could mean (presuming default installation directories) 
copy (from the compiled openssl dirctory) the whole inc32/openssl 
directory and its contents to 
"C:\Program Files\Microsoft Visual Studio\VC98\Include\openssl",
and from out32dll (in the openssl directory) the two needed libraries 
(libeay32.lib and ssleay32.lib) to 
"C:\Program Files\Microsoft Visual Studio\VC98\lib".
These locations aren't exactly the best but will get you started if you 
don't know where to place these headers and libraries.
Usually at runtime some openssl libraries (currently ssleay32.dll and
libeay32.dll) will need to be available in your environment PATH.

If you want to build the help file you will need a copy of makeinfo to
convert wget.texi to rtf and html. I've made a copy available at
<URL:ftp://sunsite.dk/projects/wget/makeinfo.zip>.  This copy of
makeinfo is from the miktxt 1.10 archive available from ctan. You also
will need perl 5, one possibility is Activeperl (currently free) from
<URL:http://www.activestate.com>; you need to locate the download and
install instructions for the current version available (since the
packages and installation instructions change from time to time).

If you don't want/can't to compile wget with openssl comment the SSL 
related lines in windows\Makefile.src; then follow the normal 
instructions (configure.bat and so on).

Windows contributors:

* Darko Budor <dbudor at zesoi.fer.hr> -- the initial work on the Windows
  port;

* Tim Charron <tcharron at interlog.com> -- additional cleanup and
  contribution of the Watcom makefile;

* John Burden <john at futuresguide.com> -- cleanup of the VC++ makefile
  to get a clean build with VC++ 5.0 on Windows 95;

* Douglas E. Wegscheid -- maintains configure.bat and various Windows
  makefiles.

--- NEW FILE: Makefile.doc ---
# Makefile for `wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.

# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.

# You probably need makeinfo and perl, see the README in the main
# windows directory.

RM = del
CP     = copy
ATTRIB = attrib

MAKEINFO     = makeinfo.exe
TEXI2POD     = texi2pod.pl
POD2MAN      = pod2man

SAMPLERCTEXI = sample.wgetrc.munged_for_texi_inclusion
WGETHLP      = wget.hlp
WGETINFO     = wget.info
WGETTEXI     = wget.texi
WGETHTML     = wget.html
WGETPOD      = wget.pod
manext       = 1
MAN          = wget.$(manext)

all: $(WGETHLP) $(WGETINFO) $(WGETHTML)

.IGNORE:
$(SAMPLERCTEXI): sample.wgetrc
	perl -pne "s/@/@@/g" < $? > $@

$(WGETINFO): $(SAMPLERCTEXI) $(WGETTEXI)
	$(MAKEINFO) --no-validate --no-warn --force \
--no-split $(WGETTEXI)

$(WGETHTML): $(SAMPLERCTEXI) $(WGETTEXI)
	$(MAKEINFO) --no-validate --no-warn --force \
--no-split --html -o $@ $(WGETTEXI)

$(TEXI2POD): $(TEXI2POD).in
	$(CP) $? $@

$(WGETPOD): $(WGETTEXI) $(TEXI2POD)
	$(TEXI2POD) $(WGETTEXI) $@

man:	$(MAN)

$(MAN): $(WGETPOD)
	$(POD2MAN) --center="GNU Wget" --release="GNU Wget @VERSION@" $? > $@

$(WGETHLP): $(WGETTEXI) $(SAMPLERCTEXI)
        $(MAKEINFO) --no-validate --no-warn --force \
--hpj wget.hpj --output wget.rtf $(WGETTEXI)
        hcrtf -xn wget.hpj

clean:
        $(RM) *.bak
        $(RM) *.hpj
        $(RM) *.rtf
        $(RM) *.ph
	$(RM) $(SAMPLERCTEXI)
	$(RM) $(MAN)
	$(RM) $(TEXI2POD)
	$(ATTRIB) -h *.gid
	$(RM) *.gid

distclean: clean
	$(RM) $(WGETHTML)
	$(RM) $(WGETPOD)
	$(RM) $(WGETHLP)
	$(RM) $(WGETINFO)
	$(RM) $(WGETHLP)
	$(RM) Makefile

realclean: distclean





More information about the dslinux-commit mailing list