(from <Someone>)
Here's the gcc makefile. I also cleaned up the batch file a little and added instructions to install.nt. I copied most of the items from the existing Makefiles, including the 32x32 tile support, even though that is not available. This way comparing the makefiles is easiest :-)
This commit is contained in:
@@ -1,54 +1,67 @@
|
||||
@REM SCCS Id: @(#)nhsetup.bat 2002/03/06
|
||||
@REM SCCS Id: @(#)nhsetup.bat 2002/03/07
|
||||
@REM Copyright (c) NetHack PC Development Team 1993, 1996, 2002
|
||||
@REM NetHack may be freely redistributed. See license for details.
|
||||
@REM Win32 setup batch file, see Install.nt for details
|
||||
@REM
|
||||
@echo off
|
||||
|
||||
set _opt=
|
||||
set _donebor=
|
||||
set _pause=
|
||||
|
||||
:nxtcheck
|
||||
echo Checking to see if directories are set up properly
|
||||
if not exist ..\..\include\hack.h goto err_dir
|
||||
if not exist ..\..\src\hack.c goto err_dir
|
||||
if not exist ..\..\dat\wizard.des goto err_dir
|
||||
if not exist ..\..\util\makedefs.c goto err_dir
|
||||
if not exist ..\..\sys\winnt\winnt.c goto err_dir
|
||||
if not exist ..\..\include\hack.h goto :err_dir
|
||||
if not exist ..\..\src\hack.c goto :err_dir
|
||||
if not exist ..\..\dat\wizard.des goto :err_dir
|
||||
if not exist ..\..\util\makedefs.c goto :err_dir
|
||||
if not exist ..\..\sys\winnt\winnt.c goto :err_dir
|
||||
echo Directories look ok.
|
||||
|
||||
:do_tty
|
||||
set _opt=NetHack for NT Console
|
||||
if NOT exist ..\..\binary\*.* mkdir ..\..\binary
|
||||
if NOT exist ..\..\binary\license copy ..\..\dat\license ..\..\binary\license >nul
|
||||
echo Copying Microsoft Makefile - Makefile.msc to ..\..\src\Makefile.
|
||||
if NOT exist ..\..\src\Makefile goto :domsc
|
||||
copy ..\..\src\Makefile ..\..\src\Makefile-orig >nul
|
||||
echo Your existing
|
||||
echo ..\..\src\Makefile
|
||||
echo has been renamed to
|
||||
echo ..\..\src\Makefile-orig
|
||||
:domsc
|
||||
copy Makefile.msc ..\..\src\Makefile >nul
|
||||
echo Microsoft Makefile copied ok.
|
||||
|
||||
echo Copying Borland Makefile - Makefile.bcc to ..\..\src\Makefile.bcc
|
||||
if NOT exist ..\..\src\Makefile.bcc goto dobor
|
||||
if NOT exist ..\..\src\Makefile.bcc goto :dobor
|
||||
copy ..\..\src\Makefile.bcc ..\..\src\Makefile.bcc-orig >nul
|
||||
echo Your existing
|
||||
echo ..\..\src\Makefile.bcc
|
||||
echo has been renamed to
|
||||
echo ..\..\src\Makefile.bcc-orig
|
||||
echo Borland Makefile copied ok.
|
||||
:dobor
|
||||
copy Makefile.bcc ..\..\src\Makefile.bcc >nul
|
||||
set _donebor=Y
|
||||
echo Borland Makefile copied ok.
|
||||
|
||||
echo Copying MinGW Makefile - Makefile.gcc to ..\..\src\Makefile.gcc
|
||||
if NOT exist ..\..\src\Makefile.gcc goto :dogcc
|
||||
copy ..\..\src\Makefile.gcc ..\..\src\Makefile.gcc-orig >nul
|
||||
echo Your existing
|
||||
echo ..\..\src\Makefile.gcc
|
||||
echo has been renamed to
|
||||
echo ..\..\src\Makefile.gcc-orig
|
||||
:dogcc
|
||||
copy Makefile.gcc ..\..\src\Makefile.gcc >nul
|
||||
echo MinGW Makefile copied ok.
|
||||
|
||||
:do_win
|
||||
set _opt=Graphical NetHack for Windows
|
||||
if not exist ..\..\win\win32\nethack.dsw goto err_win
|
||||
if not exist ..\..\win\win32\nethack.dsw goto :err_win
|
||||
echo.
|
||||
echo Copying Visual C project files to ..\..\build directory
|
||||
REM copy ..\..\win\win32\winnt.dsw ..\.. >nul
|
||||
echo Copying ..\..\win\win32\nethack.dsw ..\..\nethack.dsw
|
||||
copy ..\..\win\win32\nethack.dsw ..\.. >nul
|
||||
if NOT exist ..\..\binary\*.* echo Creating ..\..\binary directory
|
||||
if NOT exist ..\..\binary\*.* mkdir ..\..\binary
|
||||
if NOT exist ..\..\binary\license copy ..\..\dat\license ..\..\binary\license >nul
|
||||
if NOT exist ..\..\build\*.* echo Creating ..\..\binary directory
|
||||
if NOT exist ..\..\build\*.* echo Creating ..\..\build directory
|
||||
if NOT exist ..\..\build\*.* mkdir ..\..\build
|
||||
copy ..\..\win\win32\dgncomp.dsp ..\..\build >nul
|
||||
copy ..\..\win\win32\dgnstuff.dsp ..\..\build >nul
|
||||
@@ -65,35 +78,26 @@ copy ..\..\win\win32\tiles.mak ..\..\build >nul
|
||||
copy ..\..\win\win32\tilemap.dsp ..\..\build >nul
|
||||
copy ..\..\win\win32\uudecode.dsp ..\..\build >nul
|
||||
copy ..\..\win\win32\nethackw.dsp ..\..\build >nul
|
||||
if "%_donebor%"=="Y" goto done
|
||||
if NOT exist ..\..\src\Makefile.bcc goto dobor
|
||||
copy ..\..\src\Makefile.bcc ..\..\src\Makefile.bcc-orig >nul
|
||||
echo Your existing
|
||||
echo ..\..\src\Makefile.bcc
|
||||
echo has been renamed to
|
||||
echo ..\..\src\Makefile.bcc-orig
|
||||
:dobor
|
||||
copy Makefile.bcc ..\..\src\Makefile.bcc >nul
|
||||
|
||||
goto done
|
||||
goto :done
|
||||
|
||||
:err_win
|
||||
echo Some of the files needed to build graphical NetHack
|
||||
echo for Windows are not in the expected places.
|
||||
echo Check "Install.nt" for a list of the steps required
|
||||
echo to build NetHack.
|
||||
goto fini
|
||||
goto :fini
|
||||
|
||||
:err_data
|
||||
echo A required file ..\..\dat\data.bas seems to be missing.
|
||||
echo Check "Files." in the root directory for your NetHack distribution
|
||||
echo and make sure that all required files exist.
|
||||
goto fini
|
||||
goto :fini
|
||||
|
||||
:err_dir
|
||||
echo Your directories are not set up properly, please re-read the
|
||||
echo documentation and sys/winnt/Install.nt.
|
||||
goto fini
|
||||
goto :fini
|
||||
|
||||
:done
|
||||
echo done!
|
||||
@@ -103,8 +107,6 @@ echo.
|
||||
|
||||
:fini
|
||||
:end
|
||||
set _opt=
|
||||
set _donebor=
|
||||
set _pause=Y
|
||||
if "%0"=="nhsetup" set _pause=N
|
||||
if "%0"=="NHSETUP" set _pause=N
|
||||
|
||||
Reference in New Issue
Block a user