]> sjero.net Git - wget/blob - configure.bat.in
[svn] Support for MINGW compilation.
[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 cls
30 if .%1 == .--borland goto :borland
31 if .%1 == .--mingw goto :mingw
32 if .%1 == .--msvc goto :msvc
33 if .%1 == .--watcom goto :watcom
34 goto :usage
35
36 :msvc
37 copy windows\config.h.ms src\config.h > nul
38 copy windows\Makefile.top Makefile > nul
39 copy windows\Makefile.src src\Makefile > nul
40 copy windows\Makefile.doc doc\Makefile > nul
41
42 echo Type NMAKE to start compiling.
43 echo If it doesn't work, try executing MSDEV\BIN\VCVARS32.BAT first,
44 echo and then NMAKE.
45 goto :end
46
47 :borland
48 copy windows\config.h.bor src\config.h > nul
49 copy windows\Makefile.top.bor Makefile > nul
50 copy windows\Makefile.src.bor src\Makefile > nul
51 copy windows\Makefile.doc doc\Makefile > nul
52
53 echo Type MAKE to start compiling.
54 goto :end
55
56 :mingw
57 copy windows\config.h.mingw src\config.h > nul
58 copy windows\Makefile.top.mingw Makefile > nul
59 copy windows\Makefile.src.mingw src\Makefile > nul
60 copy windows\Makefile.doc doc\Makefile > nul
61
62 echo Type mingw32-make to start compiling.
63 goto :end
64
65 :watcom
66 copy windows\config.h.ms src\config.h > nul
67 copy windows\Makefile.watcom src\Makefile > nul
68
69 @echo Checking environment vars
70 @set INCLUDE | find /I "WATCOM"
71 @set LIB     | find /I "WATCOM"
72 @echo If WATCOM directories were not displayed, you need to
73 @echo SET INCLUDE and SET LIB to the Watcom directories
74 @echo.
75 cd src
76 @echo Type WMAKE to build
77 goto :end
78
79 :usage
80 echo "Usage: configure [--borland | --mingw | --msvc | --watcom]"
81 :end