SWITCH BASIC
! XMAKLB.CMD	Run using ATPK.
!
! Make RSX run-time library for C programs.  This command file deletes
! all .OB files in OB:
!
! You must be logged in under a privileged account in order to
! do cross-account creations.
!
! Assignments:
! SR:	[5,4]	Common library source
!	[5,5]	Common I/O library source
! LS:	NL:	Listings
! OB:	[5,5]	Object files temp
! OU:	[5,2]	Library output
!
$ALLOW WARNING ERRORS
ASSIGN SY:[5,5]	OB
ASSIGN NL:	LS
!
$ALLOW FATAL ERRORS
PIP OB:*.OB<0>/RE
PIP OB:*.OB/DE
$ALLOW WARNING ERRORS
!
ASSIGN SY:[5,4]SR
MAC @SR:XCLBAS
!
ASSIGN SY:[5,5]SR
MAC @SR:XILBAS
!
DEASSIGN SR
ASSIGN SY:[5,2]OU
!
! Concatenate all modules (messy on RSTS/E)
! Don't put ATOF and DTOA into the library
!
PIP OU:RXDTOA.OBJ<40>=OB:DTOA.OB
PIP OU:RXATOF.OBJ<40>=OB:ATOF.OB
PIP OB:DTOA.OB<0>/RE
PIP OB:ATOF.OB<0>/RE
PIP OB:DTOA.OB,OB:ATOF.OB/DE
PIP OB:OTS.TMP=OB:*.OB/RMS:FB
PIP OB:OTS.TMP/RMS:FB=OB:OTS.TMP
LBR OU:C/CR=OB:OTS.TMP
PIP OB:*.OB<0>/RE
PIP OB:*.OB/DE
PIP OB:OTS.TMP<0>/RE
PIP OB:OTS.TMP/DE
PIP OU:C.OLB<40>/RE
!
! Library build complete
!
