home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume16 / nethack31 / patch1ee < prev    next >
Text File  |  1993-03-05  |  8KB  |  226 lines

  1. Subject:  v17i072:  nethack31 - display oriented dungeons & dragons (Ver. 3.1), Patch1ee/31
  2. Newsgroups: comp.sources.games
  3. Approved: billr@saab.CNA.TEK.COM
  4.  
  5. Submitted-by: izchak@linc.cis.upenn.edu (Izchak Miller)
  6. Posting-number: Volume 17, Issue 72
  7. Archive-name: nethack31/Patch1ee
  8. Patch-To: nethack31: Volume 16, Issue 1-116
  9. Environment: Amiga, Atari, Mac, MS-DOS, Windows-NT, OS2, Unix, VMS, X11
  10.  
  11.  
  12.  
  13. #! /bin/sh
  14. # This is a shell archive.  Remove anything before this line, then unpack
  15. # it by saving it into a file and typing "sh file".  To overwrite existing
  16. # files, type "sh file -c".  You can also feed this as standard input via
  17. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  18. # will see the following message at the end:
  19. #        "End of archive 31 (of 31)."
  20. # Contents:  sys/winnt/nhincl.mak
  21. # Wrapped by billr@saab on Fri Mar  5 10:50:50 1993
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. if test -f 'sys/winnt/nhincl.mak' -a "${1}" != "-c" ; then 
  24.   echo shar: Renaming existing file \"'sys/winnt/nhincl.mak'\" to \"'sys/winnt/nhincl.mak.orig'\"
  25.   mv -f 'sys/winnt/nhincl.mak' 'sys/winnt/nhincl.mak.orig'
  26. fi
  27. echo shar: Extracting \"'sys/winnt/nhincl.mak'\" \(5702 characters\)
  28. sed "s/^X//" >'sys/winnt/nhincl.mak' <<'END_OF_FILE'
  29. X# =========================================================
  30. X# NTWIN32.MAK
  31. X# Win32 Application NMAKE Definitions
  32. X# Modified slightly for compiling NT NetHack 3.1.0
  33. X# =========================================================
  34. X
  35. X# ---------------------------------------------------------
  36. X# Get CPU Type - exit if CPU environment variable is not defined
  37. X# ---------------------------------------------------------
  38. X
  39. X# declarations for use on Intel 80x86 systems.
  40. X!IF "$(CPU)" == "i386"
  41. XCPUTYPE = 1
  42. XDLLENTRY = @12
  43. X!ENDIF
  44. X
  45. X# declarations for use on self hosted MIPS systems.
  46. X!IF "$(CPU)" == "MIPS"
  47. XCPUTYPE = 2
  48. XDLLENTRY = 
  49. X!ENDIF
  50. X
  51. X!IFNDEF CPUTYPE
  52. X!ERROR  Must specify CPU Environment Variable ( CPU=i386 or CPU=MIPS )
  53. X!ENDIF
  54. X
  55. X# ---------------------------------------------------------
  56. X# Target Module Dependant Compile Declarations
  57. X#
  58. X# Below is a table which describes which flags to use
  59. X# depending on the module target:
  60. X#
  61. X# Module       Number of Threads Variables to C run-time
  62. X# Target       Single/Multiple   Include      Library
  63. X# -----------  ----------------- ------------ ----------
  64. X# MODULE .EXE  Single            CVARS        LIBC.LIB
  65. X# MODULE .EXE  Multiple          CVARSMT      LIBCMT.LIB
  66. X# MODULE .DLL  Single            CVARSDLL     CRTDLL.LIB
  67. X# MODULE .DLL  Multiple          CVARSMTDLL   CRTDLL.LIB
  68. X#
  69. X# Legend:
  70. X# MODULE  : A Win32 Graphical User Interface module or a
  71. X#           Win32 Character-Mode User Interface module
  72. X# ---------------------------------------------------------
  73. X
  74. Xcvars      = -DWIN32
  75. Xcvarsmt    = $(cvars) -D_MT
  76. Xcvarsdll   = $(cvars) -D_DLL
  77. Xcvarsmtdll = $(cvars) -D_MT -D_DLL
  78. X
  79. X#----------------------------------------------------------
  80. X# Subsystem Dependent Compile Declarations
  81. X#
  82. X# When compiling for the POSIX Subsystem, psxvars should be
  83. X# included.
  84. X#
  85. X#----------------------------------------------------------
  86. X
  87. Xpsxvars    = -D_POSIX_
  88. X
  89. X# ---------------------------------------------------------
  90. X# Platform Dependent Compile Flags - must be specified after $(cc)
  91. X#
  92. X# Note: Debug switches are default for current release
  93. X#
  94. X# These switches allow for source level debugging
  95. X# with WinDebug for local and global variables.
  96. X#
  97. X# i386 flags:
  98. X#   -c   - compile without linking
  99. X#   -G3  - generate 80386 instructions
  100. X#   -W3  - Set warning level to level 3
  101. X#   -Zi  - generate debugging information
  102. X#   -Od  - disable all optimizations
  103. X#
  104. X# MIPS flags:
  105. X#   -c   - compile without linking
  106. X#   -std - produce warnings for non-ANSI standard source code.
  107. X#   -g2  - produce a symbol table for debugging
  108. X#   -O   - invoke the global optimizer
  109. X#   -EL  - produce object modules targeted for
  110. X#          "little-endian" byte ordering
  111. X# ---------------------------------------------------------
  112. X
  113. X# declarations for use on Intel 80x86 systems.
  114. X!IF "$(CPU)" == "i386"
  115. Xcdebug   = -Zi -Od
  116. Xcflags   = -c -G3 -W0 -Di386=1 -nologo
  117. Xcvtdebug =
  118. X!ENDIF
  119. X
  120. X# declarations for use on self hosted MIPS systems.
  121. X!IF "$(CPU)" == "MIPS"
  122. Xcdebug   = -g2
  123. Xcflags   = -c -std -o $(*B).obj -EL -DMIPS=1
  124. Xcvtdebug = -c
  125. X!ENDIF
  126. X
  127. X# ---------------------------------------------------------
  128. X# Target Module Dependent Link Flags - must be specified after $(link)
  129. X#
  130. X# Note: Debug switches are default for current release
  131. X#
  132. X# These switches allow for source level debugging
  133. X# with WinDebug for local and global variables.
  134. X# ---------------------------------------------------------
  135. X
  136. Xlinkdebug = -debug:full -debugtype:cv
  137. Xconflags  = -subsystem:console -entry:mainCRTStartup
  138. Xguiflags  = -subsystem:windows -entry:WinMainCRTStartup
  139. Xpsxflags  = -subsystem:posix -entry:__PosixProcessStartup
  140. X
  141. X# ---------------------------------------------------------
  142. X# Platform Dependent Binaries Declarations
  143. X#
  144. X# Note: Debug switches are default for current release
  145. X#
  146. X# These switches allow for source level debugging
  147. X# with WinDebug for local and global variables.
  148. X# ---------------------------------------------------------
  149. X
  150. X# declarations for use on Intel 80x86 systems.
  151. X!IF "$(CPU)" == "i386"
  152. Xcc     = cl386
  153. Xcvtobj = REM MIPS-only conversion:
  154. X!ENDIF
  155. X
  156. X# declarations for use on self hosted MIPS systems.
  157. X!IF "$(CPU)" == "MIPS"
  158. Xcc     = cc
  159. Xcvtobj = mip2coff 
  160. X!ENDIF
  161. X
  162. Xlink = link 
  163. X
  164. X# ---------------------------------------------------------
  165. X# Target Module Dependent Link Libraries
  166. X#
  167. X# Below is a table which describes which libraries to use
  168. X# depending on the module target:
  169. X#
  170. X# Module       Number of Threads Variables to C run-time
  171. X# Target       Single/Multiple   Include      Library
  172. X# -----------  ----------------- ------------ ----------
  173. X# CONSOLE.EXE  Single            CONLIBS      LIBC.LIB
  174. X# CONSOLE.EXE  Multiple          CONLIBSMT    LIBCMT.LIB
  175. X# CONSOLE.DLL  Either            CONLIBSDLL   CRTDLL.LIB
  176. X# WINDOWS.EXE  Single            GUILIBS      LIBC.LIB
  177. X# WINDOWS.EXE  Multiple          GUILIBSMT    LIBCMT.LIB
  178. X# WINDOWS.DLL  Either            GUILIBSDLL   CRTDLL.LIB
  179. X# POSIX.EXE    Single            PSXLIBS      LIBCPSX.LIB
  180. X#
  181. X# Legend:
  182. X# WINDOWS : A Win32 Graphical User Interface module
  183. X# CONSOLE : A Win32 Character-Mode User Interface module
  184. X# POSIX   : A Posix Subsystem Character-Mode User Interface module
  185. X# ---------------------------------------------------------
  186. X
  187. Xconlibs    = libc.lib ntdll.lib kernel32.lib
  188. X
  189. Xconlibsmt  = libcmt.lib ntdll.lib kernel32.lib
  190. X
  191. Xconlibsdll = crtdll.lib ntdll.lib kernel32.lib
  192. X
  193. Xguilibs    = libc.lib ntdll.lib kernel32.lib user32.lib gdi32.lib \
  194. X             winspool.lib comdlg32.lib
  195. X
  196. Xguilibsmt  = libcmt.lib ntdll.lib kernel32.lib user32.lib gdi32.lib \
  197. X             winspool.lib comdlg32.lib
  198. X
  199. Xguilibsdll = crtdll.lib ntdll.lib kernel32.lib user32.lib gdi32.lib \
  200. X             winspool.lib comdlg32.lib
  201. X
  202. Xpsxlibs    = libcpsx.lib ntdll.lib kernel32.lib psxdll.lib psxrtl.lib
  203. END_OF_FILE
  204. if test 5702 -ne `wc -c <'sys/winnt/nhincl.mak'`; then
  205.     echo shar: \"'sys/winnt/nhincl.mak'\" unpacked with wrong size!
  206. fi
  207. # end of 'sys/winnt/nhincl.mak'
  208. echo shar: End of archive 31 \(of 31\).
  209. cp /dev/null ark31isdone
  210. MISSING=""
  211. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ; do
  212.     if test ! -f ark${I}isdone ; then
  213.     MISSING="${MISSING} ${I}"
  214.     fi
  215. done
  216. if test "${MISSING}" = "" ; then
  217.     echo You have unpacked all 31 archives.
  218.     echo "Now execute 'patchit.sh'"
  219.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  220. else
  221.     echo You still need to unpack the following archives:
  222.     echo "        " ${MISSING}
  223. fi
  224. ##  End of shell archive.
  225. exit 0
  226.