more lib subfolder updates

This commit is contained in:
nhmall
2019-11-27 13:19:45 -05:00
parent 8e1891f3bb
commit c1dad9bb25
2 changed files with 43 additions and 28 deletions

View File

@@ -16,39 +16,40 @@
structure. You should set up a directory--referred to as "top" below structure. You should set up a directory--referred to as "top" below
and in some of the assorted files, but which may be a subdirectory-- and in some of the assorted files, but which may be a subdirectory--
that has these subdirectories that has these subdirectories
[.dat] -- data files [.dat] -- data files
[.doc] -- documentation files [.doc] -- documentation files
[.include] -- C header files [.include] -- C header files
[.src] -- primary source files [.lib .lua535] -- Lua distribution from https://www.lua.org/
[.sys] -- parent for [.sys.*] [.src] -- primary source files
[.sys .share] -- files shared by several ports, including VMS [.sys] -- parent for [.sys.*]
[.sys .vms] -- VMS-specific source and support files [.sys .share] -- files shared by several ports, including VMS
[.util] -- sources for essential utility programs [.sys .vms] -- VMS-specific source and support files
[.win] -- parent for [.win.*] [.util] -- sources for essential utility programs
[.win .tty] -- "window" routines for ordinary terminals [.win] -- parent for [.win.*]
[.win .tty] -- "window" routines for ordinary terminals
(including terminal windows on workstations) (including terminal windows on workstations)
The following subdirectories may be present, but are not useful for The following subdirectories may be present, but are not useful for
building NetHack on VMS and are not required: building NetHack on VMS and are not required:
[.sys .amiga] -- AmigaDOS [.sys .amiga] -- AmigaDOS
[.sys .atari] -- Atari TOS [.sys .atari] -- Atari TOS
[.sys .be] -- BeBox BeOS [.sys .be] -- BeBox BeOS
[.sys .mac] -- Macintosh [.sys .mac] -- Macintosh
[.sys .msdos] -- MSDOS for IBM PCs and compatibles [.sys .msdos] -- MSDOS for IBM PCs and compatibles
[.sys .os2] -- OS/2 [.sys .os2] -- OS/2
[.sys .share .sounds] -- AIFF format audio files [.sys .share .sounds] -- AIFF format audio files
[.sys .unix] -- guess :-) [.sys .unix] -- guess :-)
[.sys .unit .hints] -- configuration data for setup.sh [.sys .unit .hints] -- configuration data for setup.sh
[.sys .wince] -- Windows CE [.sys .wince] -- Windows CE
[.sys .wince .ceinc] -- more WinCE [.sys .wince .ceinc] -- more WinCE
[.sys .wince .ceinc .sys] -- ditto [.sys .wince .ceinc .sys] -- ditto
[.sys .winnt] -- Windows NT [.sys .winnt] -- Windows NT
[.win .gem] -- window routines for Atari/GEM [.win .gem] -- window routines for Atari/GEM
[.win .gnome] -- window routines for Unix/GNOME [.win .gnome] -- window routines for Unix/GNOME
[.win .Qt] -- window routines for Qt [.win .Qt] -- window routines for Qt
[.win .share] -- "tile" graphic support [.win .share] -- "tile" graphic support
[.win .win32] -- Windows NT and Windows CE [.win .win32] -- Windows NT and Windows CE
[.win .X11] -- window routines for X-Windows; requires X11R4 [.win .X11] -- window routines for X-Windows; requires X11R4
or later and MIT's Athena Widget set or later and MIT's Athena Widget set
You must arrange things in this structure or the supplied procedures You must arrange things in this structure or the supplied procedures
and instructions in this file will not work properly. Several DCL and instructions in this file will not work properly. Several DCL
command files are present in the [.sys.vms] subdirectory and will not command files are present in the [.sys.vms] subdirectory and will not

View File

@@ -34,8 +34,8 @@ $ gnuc_ = "GCC"
$ if f$type(gcc).eqs."STRING" then gnuc_ = gcc $ if f$type(gcc).eqs."STRING" then gnuc_ = gcc
$ gnulib = "gnu_cc:[000000]gcclib/Library" !(not used w/ vaxc) $ gnulib = "gnu_cc:[000000]gcclib/Library" !(not used w/ vaxc)
$ ! common CC options (/obj=file doesn't work for GCC 1.36, use rename instead) $ ! common CC options (/obj=file doesn't work for GCC 1.36, use rename instead)
$ ! c_c_ = "/INCLUDE=([-.INCLUDE],[-.-.LUA535.SRC])/DEFINE=(""LUA_USE_C89"",""LUA_32BITS"")" $ ! c_c_ = "/INCLUDE=([-.INCLUDE],[-.LIB.LUA535.SRC])/DEFINE=(""LUA_USE_C89"",""LUA_32BITS"")"
$ c_c_ = "/INCLUDE=([-.INCLUDE],[-.-.LUA535.SRC])/DEFINE=(""LUA_USE_C89"")" $ c_c_ = "/INCLUDE=([-.INCLUDE],[-.LIB.LUA535.SRC])/DEFINE=(""LUA_USE_C89"")"
$ veryold_vms = f$extract(1,1,f$getsyi("VERSION")).eqs."4" - $ veryold_vms = f$extract(1,1,f$getsyi("VERSION")).eqs."4" -
.and. f$extract(3,3,f$getsyi("VERSION")).lts."6" .and. f$extract(3,3,f$getsyi("VERSION")).lts."6"
$ if veryold_vms then c_c_ = c_c_ + "/DEFINE=(""VERYOLD_VMS"")" $ if veryold_vms then c_c_ = c_c_ + "/DEFINE=(""VERYOLD_VMS"")"
@@ -251,6 +251,20 @@ $ interface = ttysrc !default
$ if p5.eqs."CURSES" then interface = cursessrc $ if p5.eqs."CURSES" then interface = cursessrc
$ if p5.eqs."TTY+CURSES" then interface = ttysrc + "," + cursessrc $ if p5.eqs."TTY+CURSES" then interface = ttysrc + "," + cursessrc
$ if p5.eqs."CURSES+TTY" then interface = cursessrc + "," + ttysrc $ if p5.eqs."CURSES+TTY" then interface = cursessrc + "," + ttysrc
$ if f$search("[-.include]nhlua.h").eqs.""
$ then
$ create [-.include]nhlua.h !empty
$ set file/att=(RFM:STM) [-.include]nhlua.h
$ open/Append f [-.include]nhlua.h
$ write f "/* nhlua.h - generated by vmsbuild.com */"
$ write f "#include ""[-.lib.lua535.src]lua.h"""
$ write f "LUA_API int (lua_error) (lua_State *L) NORETURN;"
$ write f "#include ""[-.lib.lua535.src]lualib.h"""
$ write f "#include ""[-.lib.lua535.src]lauxlib.h"""
$ write f "/*nhlua.h*/"
$ close f
$ endif
$! $!
$! create object library $! create object library
$! $!