]> sjero.net Git - wget/blob - configure.bat.in
c8b45815db4aa1b699705ae129d80fbae962d802
[wget] / configure.bat.in
1 @echo off
2 rem Configure batch file for `Wget' utility
3 rem Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
4
5 rem This program is free software; you can redistribute it and/or modify
6 rem it under the terms of the GNU General Public License as published by
7 rem the Free Software Foundation; either version 2 of the License, or
8 rem (at your option) any later version.
9
10 rem This program is distributed in the hope that it will be useful,
11 rem but WITHOUT ANY WARRANTY; without even the implied warranty of
12 rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 rem GNU General Public License for more details.
14
15 rem You should have received a copy of the GNU General Public License
16 rem along with this program; if not, write to the Free Software
17 rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 rem In addition, as a special exception, the Free Software Foundation
20 rem gives permission to link the code of its release of Wget with the
21 rem OpenSSL project's "OpenSSL" library (or with modified versions of it
22 rem that use the same license as the "OpenSSL" library), and distribute
23 rem the linked executables.  You must obey the GNU General Public License
24 rem in all respects for all of the code used other than "OpenSSL".  If you
25 rem modify this file, you may extend this exception to your version of the
26 rem file, but you are not obligated to do so.  If you do not wish to do
27 rem so, delete this exception statement from your version.
28
29 if .%1 == .--borland goto :borland
30 if .%1 == .--mingw goto :mingw
31 if .%1 == .--msvc goto :msvc
32 if .%1 == .--watcom goto :watcom
33 goto :usage
34
35 :msvc
36 copy windows\config.h.ms src\config.h > nul
37 copy windows\Makefile.top Makefile > nul
38 copy windows\Makefile.src src\Makefile > nul
39 copy windows\Makefile.doc doc\Makefile > nul
40
41 echo Type NMAKE to start compiling.
42 echo If it doesn't work, try executing MSDEV\BIN\VCVARS32.BAT first,
43 echo and then NMAKE.
44 goto :end
45
46 :borland
47 copy windows\config.h.bor src\config.h > nul
48 copy windows\Makefile.top.bor Makefile > nul
49 copy windows\Makefile.src.bor src\Makefile > nul
50 copy windows\Makefile.doc doc\Makefile > nul
51
52 echo Type MAKE to start compiling.
53 goto :end
54
55 :mingw
56 copy windows\config.h.mingw src\config.h > nul
57 copy windows\Makefile.top.mingw Makefile > nul
58 copy windows\Makefile.src.mingw src\Makefile > nul
59 copy windows\Makefile.doc doc\Makefile > nul
60
61 echo Type mingw32-make to start compiling.
62 goto :end
63
64 :watcom
65 copy windows\config.h.ms src\config.h > nul
66 copy windows\Makefile.watcom src\Makefile > nul
67
68 @echo Checking environment vars
69 @set INCLUDE | find /I "WATCOM"
70 @set LIB     | find /I "WATCOM"
71 @echo If WATCOM directories were not displayed, you need to
72 @echo SET INCLUDE and SET LIB to the Watcom directories
73 @echo.
74 cd src
75 @echo Type WMAKE to build
76 goto :end
77
78 :usage
79 echo "Usage: configure [--borland | --mingw | --msvc | --watcom]"
80 :end