dvadura@watdragon.waterloo.edu (Dennis Vadura) (12/01/90)
#!/bin/sh
# shar: Shell Archiver (v1.22)
#
# This is part 1 of a multipart archive
# do not concatenate these parts, unpack them in order with /bin/sh
#
# Run the following text with /bin/sh to create:
# dmake-3.6-patch2
#
if test -r s2_seq_.tmp
then echo "Must unpack archives in sequence!"
next=`cat s2_seq_.tmp`; echo "Please unpack part $next next"
exit 1; fi
sed 's/^X//' << 'SHAR_EOF' > dmake-3.6-patch2 &&
X#!/bin/sh
X# dodiff: Directory tree maintainer (v1.1)
X#
X# DMAKE Version 3.6, patch #2
X# ---------------------------
X#
X# Severity: Medium
X#
X# Nature: Minor teething problems with UNIX, added support for OS/2 protected
X# mode, and a couple of persistent bugs fixed.
X#
X# Format: Shar containing new versions of affected files. With appropriate
X# patches. (run the patch file through sh in the source distribution
X# directory and it will do the rest)
X#
X# Also available as pub/src/dmake-3.6-patch2 on watmsg.uwaterloo.edu
X# (129.97.129.9)
X#
X# Archived source incorporating all patches is available
X# for anonymous ftp from watmsg.uwaterloo.ca address is
X# 129.97.129.9. It is in the pub/src directory, set your
X# mode to binary, and copy either:
X#
X# dmake-3.6.tar.Z - compressed tar format
X# dmake-3.6.zoo - zoo archive
X#
X# NOTE: watmsg may not be available from Dec 5 to Dec 8, 1990 due
X# to reconfigurartion of a machine room here. watdragon will
X# be down during this time and hence I will be unreachable
X# via email.
X#
X# Prerequisites: dmake version 3.6, patchlevel 2 source distribution
X#
X#
X# Description of Fixes:
X# ---------------------
X# Fixes to patch level 2, after applying patch 1 to dmake V3.6.
X#
X# 1. Include putenv.c and tempnam.c with the Atari-ST tos directory. I
X# incorreclty thought they were not needed the first time around.
X#
X# 2. Added check in structs.h and unix/sysintf.h to prevent xenix 386 boxes
X# from trying to include types.h more than once. Fix supplied by:
X# holos0!lbr@gatech.edu (Len Reed)
X#
X# 3. Fixed possible bug in make.c to make sure we pop any pushed directories
X# when making .MAKEFILES prerequisites, these things can also have a .SETDIR
X# attribute.
X#
X# 4. Fix bug with NULL recipe targets. dmake now infers a NULL recipe for any
X# target that does not have a recipe after inference and does have a
X# list of prerequisites. Further, if you set AUGMAKE:=yes then it will not
X# complain about prerequisites that appear as targets in the makefile with
X# no recipe at all. Makes it a bit more compatible with Augmake.
X# Reported by krohn%SW.MCC.COM@MCC.COM (Eric Krohn).
X#
X# 5. Added _VA_LIST_ #define to unix/sysvr[13]/stdarg.h, so that it is defined
X# only once. Some syvr3 implementations require this (eg. Silicon Graphics
X# IRIX).
X#
X# 6. Fixed getinp.c and parse.c to treat \r as white space as well.
X# Fixes DOS bug that crept up from time to time and caused dmake to stop
X# parsing a makefile.
X#
X# 7. Blush, embarasing bug when constructing DFA for %-meta rule. If target
X# ended in a '%', it went one state too far and used a garbage value from
X# the name string. Sometimes this was a '%' and it would complain that
X# %-meta target contained more than one '%'.
X#
X# 8. Minor tweaks to the man page, changed the version number to 3.6 :-) too.
X#
X# 9. Minor tweaks to makefile.mk (moved %.o ... target) and to some various
X# config.mk files in order to accomodate os/2 version.
X#
X# 10. Support for OS/2 in the OS/2 directory, see (readme/os2). Files for this
X# were provided by Kai Uwe Rommel (rommel@lan.informatik.tu-muenchen.dbp.de),
X# and by Duncan Booth (duncanb@ibmpcug.co.uk, Bix:jrichards), many thanks to
X# both and to Jeremy Wohl (wohl@max.physics.sunysb.edu).
X#
X# 11. Added fix for sun 386i's broken ar.h in unix/bsd43/config.h.
X#
X# Remove Obsolete files from distribution
X
X# Now use a shar archive to add any new files to the distribution
X# shar: Shell Archiver (v1.22)
X#
X# Run the following text with /bin/sh to create:
X# make.cmd
X# os2
X# os2/_chdir.c
X# os2/config.mk
X# os2/dmake.bad
X# os2/dmake.cs
X# os2/dmake.def
X# os2/mscdos
X# os2/mscdos/config.h
X# os2/mscdos/config.mk
X# os2/mscdos/dmake.ini
X# os2/mscdos/lib.rsp
X# os2/mscdos/mk40.cmd
X# os2/mscdos/mk50.cmd
X# os2/mscdos/mk51.cmd
X# os2/mscdos/mk60.cmd
X# os2/mscdos/obj.rsp
X# os2/mscdos/optoff.h
X# os2/mscdos/startup.mk
X# os2/mscdos/tempnam.c
X# os2/ruletab.c
X# os2/runargv.c
X# os2/startup.h
X# os2/stdarg.h
X# os2/switchar.c
X# os2/sysintf.h
X# readme/patch2
X# tos/putenv.c
X# tos/tempnam.c
X#
Xsed 's/^X//' << 'SHAR_EOF' > make.cmd &&
XXecho off
XXrem *** This is the make command file that is used under OS/2 to make the
XXrem *** first version of dmake. It isn't pretty but it does work, assuming
XXrem *** the compilers have been correctly setup.
XXrem
XXecho Running make.cmd script to make a %1 copy of dmake.
XX
XXif %0%1 == %0 goto error
XXif %1 == msc40 goto mkmsc40
XXif %1 == msc50 goto mkmsc50
XXif %1 == msc51 goto mkmsc51
XXif %1 == msc60 goto mkmsc60
XX
XXrem label the possible DOS variations for dmake here.
XX:error
XXecho INDEX: You must specify one of:
XXecho msc40 - Microsoft C 4.0 compile.
XXecho msc50 - Microsoft C 5.0 compile.
XXecho msc51 - Microsoft C 5.1 compile.
XXecho msc60 - Microsoft C 6.0 compile.
XXgoto end
XX
XXrem This is the script that makes dmake using Microsoft C 4.0
XX:mkmsc40
XXos2\mscdos\mk40.cmd
XXgoto end
XX
XXrem This is the script that makes dmake using Microsoft C 5.0
XX:mkmsc50
XXos2\mscdos\mk50.cmd
XXgoto end
XX
XXrem This is the script that makes dmake using Microsoft C 5.1
XX:mkmsc51
XXos2\mscdos\mk51.cmd
XXgoto end
XX
XXrem This is the script that makes dmake using Microsoft C 6.0
XX:mkmsc60
XXos2\mscdos\mk60.cmd
XXgoto end
XX
XXrem All done!
XX:end
XSHAR_EOF
Xchmod 0640 make.cmd || echo "restore of make.cmd fails"
Xset `wc -c make.cmd`;Sum=$1
Xif test "$Sum" != "1119"
Xthen echo original size 1119, current size $Sum;fi
Xecho mkdir - os2
Xmkdir os2
Xsed 's/^X//' << 'SHAR_EOF' > os2/_chdir.c &&
XX/* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/os2/RCS/_chdir.c,v 1.1 90/11/29 21:54:55 dvadura Exp $
XX-- SYNOPSIS -- Change directory.
XX--
XX-- DESCRIPTION
XX-- Under DOS change the current drive as well as the current directory.
XX--
XX-- AUTHOR
XX-- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
XX-- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
XX--
XX-- COPYRIGHT
XX-- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
XX--
XX-- This program is free software; you can redistribute it and/or
XX-- modify it under the terms of the GNU General Public License
XX-- (version 1), as published by the Free Software Foundation, and
XX-- found in the file 'LICENSE' included with this distribution.
XX--
XX-- This program is distributed in the hope that it will be useful,
XX-- but WITHOUT ANY WARRANTY; without even the implied warrant of
XX-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
XX-- GNU General Public License for more details.
XX--
XX-- You should have received a copy of the GNU General Public License
XX-- along with this program; if not, write to the Free Software
XX-- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XX--
XX-- LOG
XX-- $Log: _chdir.c,v $
XX * Revision 1.1 90/11/29 21:54:55 dvadura
XX * Initial revision
XX *
XX*/
XX
XX#include <dos.h>
XX#include <os2.h>
XX#include "sysintf.h"
XX#include "vextern.h"
XX
XX#undef chdir /* sysintf.h defines it to _chdir for DOS */
XX
XXint
XX_chdir(path)
XXchar *path;
XX{
XX int res;
XX
XX res = chdir(path);
XX
XX if (res == 0 && path[1] == ':' && *path != *Pwd)
XX#ifdef OS2
XX DosSelectDisk((*path & ~Ox20) - '@');
XX#else
XX unsigned new_drive;
XX unsigned max_drives;
XX
XX new_drive = (*path & ~0x20) - 'A' + 1;
XX _dos_setdrive(new_drive, &max_drives);
XX#endif
XX
XX return (res);
XX}
XSHAR_EOF
Xchmod 0440 os2/_chdir.c || echo "restore of os2/_chdir.c fails"
Xset `wc -c os2/_chdir.c`;Sum=$1
Xif test "$Sum" != "1815"
Xthen echo original size 1815, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/config.mk &&
XX# This is an OS specific configuration file
XX# It assumes that OBJDIR, TARGET and DEBUG are previously defined.
XX# It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
XX# It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
XX#
XXOSRELEASE *= mscdos
XX# Memory model to compile for
XX# set to s - small, m - medium, c - compact, l - large
XX.IF $(DEBUG)
XX MODEL = l
XX.ELSE
XX MODEL = c
XX.END
XX
XXSTARTUPFILE = $(OS)/startup.mk
XX
XXCPPFLAGS = $(CFLAGS)
XXLDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
XXLDARGS = @$(LDTMPOBJ),$(TARGET),NUL.MAP$(LDTAIL)
XXLDTAIL = ,@$(LDTMPLIB)$(LDFLAGS),$(OS)\$(TARGET:b).def
XXLDTMPOBJ = <+$(LDOBJS:s,/,\\,:t"+\n")+>
XXLDTMPLIB = <+$(LDLIBS:s,/,\\,:t"+\n")+>
XX
XX# Debug flags
XXDB_CFLAGS = -DDBUG
XXDB_LDFLAGS = /ST:8000
XXDB_LDLIBS =
XX
XX# NO Debug flags
XXNDB_CFLAGS = -B2 C2L -WX # -B3 C3L
XXNDB_LDFLAGS = /ST:8000
XXNDB_LDLIBS =
XX
XX# Local configuration modifications for CFLAGS.
XXCFLAGS += -I$(OS) -DOS2
XX
XX# OS2 does not have a swap version. The operating system will
XX# handle all swapping.
XX# To save copying unchanged files in from elsewhere, I shall use them in situ.
XXOS_SRC += ruletab.c runargv.c _chdir.c switchar.c
XXDOS_SRC = dirbrk.c arlib.c
XXUNIX_SRC = rmprq.c explode.c
XX
XXSRC += $(OS_SRC) $(DOS_SRC) $(UNIX_SRC)
XX.SETDIR=$(OS) : $(ASRC) $(OS_SRC)
XX.SETDIR=msdos : $(DOS_SRC)
XX.SETDIR=unix : $(UNIX_SRC)
XX
XX# Set source dirs so that we can find files named in this
XX# config file.
XX.SOURCE.h : $(OS)
XX
XX# See if we modify anything in the lower levels.
XX.IF $(OSRELEASE) != $(NULL)
XX .INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
XX.END
XX
XX# Set the proper macros based on whether we are making the debugging version
XX# or not.
XX.IF $(DEBUG)
XX CFLAGS += $(DB_CFLAGS)
XX LDFLAGS += $(DB_LDFLAGS)
XX LDLIBS += $(DB_LDLIBS)
XX
XX SILENT := $(.SILENT)
XX .SILENT := yes
XX TARGET := db$(TARGET)
XX OBJDIR := $(OBJDIR).dbg
XX .SILENT := $(SILENT)
XX
XX SRC += dbug.c malloc.c
XX HDR += db.h
XX
XX .SOURCE.c : common
XX .SOURCE.h : common
XX.ELSE
XX CFLAGS += $(NDB_CFLAGS)
XX LDFLAGS += $(NDB_LDFLAGS)
XX LDLIBS += $(NDB_LDLIBS)
XX.END
XX
XSHAR_EOF
Xchmod 0640 os2/config.mk || echo "restore of os2/config.mk fails"
Xset `wc -c os2/config.mk`;Sum=$1
Xif test "$Sum" != "2031"
Xthen echo original size 2031, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/dmake.bad &&
XXDOSCWAIT
XXDOSKILLPROCESS
XSHAR_EOF
Xchmod 0666 os2/dmake.bad || echo "restore of os2/dmake.bad fails"
Xset `wc -c os2/dmake.bad`;Sum=$1
Xif test "$Sum" != "24"
Xthen echo original size 24, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/dmake.cs &&
XX(-DHELP -I. -Icommon -Ios2 -Ios2\mscdos -DOS2 -G2 -D__STDC__=1 -B2 C2L -WX -Gs
XXinfer.c make.c stat.c expand.c string.c hash.c dag.c
XXdmake.c path.c imacs.c sysintf.c parse.c getinp.c quit.c
XXbasename.c dump.c macparse.c rulparse.c percent.c function.c
XXos2\ruletab.c os2\_chdir.c os2\switchar.c os2\mscdos\tempnam.c os2\runargv.c
XXmsdos\dirbrk.c msdos\arlib.c
XXunix\rmprq.c unix\explode.c
XX)
XX
XXdmake.exe
XXdmake.def
XXdmake.bad
XX
XX-AC -LB -S0x2000
XSHAR_EOF
Xchmod 0666 os2/dmake.cs || echo "restore of os2/dmake.cs fails"
Xset `wc -c os2/dmake.cs`;Sum=$1
Xif test "$Sum" != "435"
Xthen echo original size 435, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/dmake.def &&
XXNAME DMAKE WINDOWCOMPAT NEWFILES
XXDESCRIPTION 'DMAKE Version 3.6'
XX
XXIMPORTS
XX SESMGR.DOSSMSETTITLE
XSHAR_EOF
Xchmod 0640 os2/dmake.def || echo "restore of os2/dmake.def fails"
Xset `wc -c os2/dmake.def`;Sum=$1
Xif test "$Sum" != "96"
Xthen echo original size 96, current size $Sum;fi
Xecho mkdir - os2/mscdos
Xmkdir os2/mscdos
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/config.h &&
XX/* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/os2/mscdos/RCS/config.h,v 1.1 90/11/14 08:48:56 dvadura Exp $
XX-- SYNOPSIS -- Configurarion include file.
XX--
XX-- DESCRIPTION
XX-- There is one of these for each specific machine configuration.
XX-- It can be used to further tweek the machine specific sources
XX-- so that they compile.
XX--
XX-- AUTHOR
XX-- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
XX-- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
XX--
XX-- COPYRIGHT
XX-- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
XX--
XX-- This program is free software; you can redistribute it and/or
XX-- modify it under the terms of the GNU General Public License
XX-- (version 1), as published by the Free Software Foundation, and
XX-- found in the file 'LICENSE' included with this distribution.
XX--
XX-- This program is distributed in the hope that it will be useful,
XX-- but WITHOUT ANY WARRANTY; without even the implied warrant of
XX-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
XX-- GNU General Public License for more details.
XX--
XX-- You should have received a copy of the GNU General Public License
XX-- along with this program; if not, write to the Free Software
XX-- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XX--
XX-- LOG
XX-- $Log: config.h,v $
XX * Revision 1.1 90/11/14 08:48:56 dvadura
XX * dmake Release, Version 3.6
XX *
XX*/
XX
XX#if defined (_MSC_VER)
XX# if _MSC_VER < 500
XX Force a compile-time blowup.
XX Do not define define _MSC_VER for MSC compilers ealier than 5.0.
XX# endif
XX#endif
XX
XX/* define this for configurations that don't have the coreleft function
XX * so that the code compiles. To my knowledge coreleft exists only on
XX * Turbo C, but it is needed here since the function is used in many debug
XX * macros. */
XX#define coreleft() 0L
XX
XX/*No parallelism in DOS so don't need to explode the graph. */
XX/* But there may be in OS/2 so we remove this. */
XX#ifndef OS2
XX#define Explode_prq(a,b,c)
XX#endif
XX
XX/* MSC Version 4.0 doesn't understand SIGTERM, later versions do. */
XX#ifndef SIGTERM
XX# define SIGTERM SIGINT
XX#endif
XX
XX/* This should already be defined under C6.0, also for OS/2 we want buffering
XX * to minimise the mess during parallel makes.
XX */
XX#ifndef _IOLBF
XX# define _IOLBF _IOFBF
XX#endif
XX
XX/* in alloc.h: size_t is redefined
XX * defined in stdio.h which is included by alloc.h
XX */
XX#if defined(MSDOS) && defined (_MSC_VER)
XX# define _TYPES_
XX#endif
XX
XX/* in sysintf.c: SIGQUIT is used, this is not defined in MSC */
XX#ifndef SIGQUIT
XX# define SIGQUIT SIGTERM
XX#endif
XSHAR_EOF
Xchmod 0440 os2/mscdos/config.h || echo "restore of os2/mscdos/config.h fails"
Xset `wc -c os2/mscdos/config.h`;Sum=$1
Xif test "$Sum" != "2575"
Xthen echo original size 2575, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/config.mk &&
XX# This is the MSC 4.0 and higher OS/2 configuration file for DMAKE
XX# It simply modifies the values of SRC, and checks to see if
XX# OSENVIRONMENT is defined. If so it includes the appropriate
XX# config.mk file.
XX#
XX# It also sets the values of .SOURCE.c and .SOURCE.h to include the local
XX# directory.
XX#
XXosrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
XX
XXTMPDIR :=
XX.EXPORT : TMPDIR
XX
XX# Definition of macros for library, and C startup code.
XX
XX# The following sources are required for MSC
XXOSR_SRC = tempnam.c
XX.SETDIR=$(osrdir) : $(OSR_SRC)
XX
XXSRC += $(OSR_SRC)
XX.SOURCE.h : $(osrdir)
XX
XX# Local configuration modifications for CFLAGS
XX# OS/2 always has at least a 286 so this is enabled by default:
XXCFLAGS += -G2
XX
XX# For OS/2 we need the LDTAIL defined in os2\config.mk
XX# Debugging libraries
XXDB_LDFLAGS += /co /li /map
XXDB_LDLIBS +=
XX
XX# NO Debug MSC flags:
XX# Set the environment variable MSC_VER to be one of 4.0, 5.0, 5.1, or 6.0
XX# to get these by default when you make dmake using 'dmake'.
XX#
XX# Setting MSC_VER to one of the above sets the variable _MSC_VER appropriately
XX# and sets the flags appropriately.
XX
XX.IMPORT .IGNORE : MSC_VER
XXMSC_VER *= 6.0 # If unset, assume 6.0 by default.
XX
XX.IF $(MSC_VER) == 4.0
XX CFLAGS += -I$(osrdir) $(C_$(MODEL):s/A/m/)
XX CFLAGS += -DM_I86=1 # 5.0+ define this automatically
XX CFLAGS += -D__STDC__=1 # 5.0, 5.1, but not 6.0 do this automatically
XX NDB_CFLAGS +=
XX DB_CFLAGS += -Zi
XX.ELSE
XX DB_CFLAGS += -Zi
XX CFLAGS += -I$(osrdir) $(C_$(MODEL))
XX .IF $(MSC_VER) != 6.0
XX # For 5.0 and 5.1, we define _MSC_VER=500 or 510
XX CFLAGS += -D_MSC_VER=$(MSC_VER:s,.,,)0
XX NDB_CFLAGS += -Oscl -Gs
XX .ELSE
XX # Microsoft C 6.0 auto defines _MSC_VER=600, but not __STDC__
XX CFLAGS += -D__STDC__=1 # incredibly not auto done by 6.0
XX NDB_CFLAGS += -Osecgl -Gs
XX
XX # Redefine rule for making our objects, we don't need mv
XX %$O : %.c ;% $(CC) -c $(CFLAGS) -Fo$@ $<
XX .END
XX NDB_LDFLAGS += /exe /packc /batch
XX NDB_LDLIBS +=
XX.END
XX
XX# See if we modify anything in the lower levels.
XX.IF $(OSENVIRONMENT) != $(NULL)
XX .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
XX.END
XX
XXC_s =
XXC_m = -AM
XXC_c = -AC
XXC_l = -AL
XX
XXS_s = -Dmsmall
XXS_m = -Dmmedium
XXS_c = -Dmcompact
XXS_l = -Dmlarge
XSHAR_EOF
Xchmod 0640 os2/mscdos/config.mk || echo "restore of os2/mscdos/config.mk fails"
Xset `wc -c os2/mscdos/config.mk`;Sum=$1
Xif test "$Sum" != "2282"
Xthen echo original size 2282, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/dmake.ini &&
XX# MSDOS DMAKE startup file. Customize to suit your needs.
XX# Assumes MKS toolkit for the tool commands, and Microsoft C. Change as req'd.
XX# See the documentation for a description of internally defined macros.
XX#
XX# Disable warnings for macros redefined here that were given
XX# on the command line.
XX__.SILENT := $(.SILENT)
XX.SILENT := yes
XX
XX# Configuration parameters for DMAKE startup.mk file
XX# Set these to NON-NULL if you wish to turn the parameter on.
XX_HAVE_RCS := yes # yes => RCS is installed.
XX_HAVE_SCCS := # yes => SCCS is installed.
XX
XX# Applicable suffix definitions
XXA := .lib # Libraries
XXE := .exe # Executables
XXF := .for # Fortran
XXO := .obj # Objects
XXP := .pas # Pascal
XXS := .asm # Assembler sources
XXV := # RCS suffix
XX
XX# See if these are defined
XXTMPDIR := $(ROOTDIR)/tmp
XX.IMPORT .IGNORE : TMPDIR SHELL COMSPEC
XX
XX# Recipe execution configurations
XX# First set SHELL, If it is not defined, use COMSPEC, otherwise
XX# it is assumed to be MKS Korn SHELL.
XX.IF $(SHELL) == $(NULL)
XX.IF $(COMSPEC) == $(NULL)
XX SHELL := $(ROOTDIR)/bin/sh$E
XX.ELSE
XX SHELL := $(COMSPEC)
XX.END
XX.END
XXGROUPSHELL := $(SHELL)
XX
XX# Now set remaining arguments depending on which SHELL we
XX# are going to use. COMSPEC (assumed to be cmd.exe) or
XX# MKS Korn Shell.
XX.IF $(SHELL)==$(COMSPEC)
XX SHELLFLAGS := $(SWITCHAR)c
XX GROUPFLAGS := $(SHELLFLAGS)
XX SHELLMETAS := *"?<>|&
XX GROUPSUFFIX := .cmd
XX DIRSEPSTR := \\
XX DIVFILE = $(TMPFILE:s,/,\)
XX.ELSE
XX SHELLFLAGS := -c
XX GROUPFLAGS :=
XX SHELLMETAS := *"?<>|()&][$$\#`'
XX GROUPSUFFIX := .ksh
XX .MKSARGS := yes
XX DIVFILE = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
XX DIVSEP_shell_yes := \\\
XX DIVSEP_shell_no := \\
XX.END
XX
XX# Standard C-language command names and flags
XX CC := cl # C-compiler and flags
XX CFLAGS +=
XX
XX AS := masm # Assembler and flags
XX ASFLAGS +=
XX
XX LD = link # Loader and flags
XX LDFLAGS +=
XX LDLIBS =
XX
XX# Definition of $(MAKE) macro for recursive makes.
XX MAKE = $(MAKECMD) $(MFLAGS)
XX
XX# Language and Parser generation Tools and their flags
XX YACC := yacc # standard yacc
XX YFLAGS +=
XX YTAB := ytab # yacc output files name stem.
XX
XX LEX := lex # standard lex
XX LFLAGS +=
XX LEXYY := lex_yy # lex output file
XX
XX# Other Compilers, Tools and their flags
XX PC := any_pc # pascal compiler
XX RC := anyf77 # ratfor compiler
XX FC := anyf77 # fortran compiler
XX
XX CO := co # check out for RCS
XX COFLAGS += -q
XX
XX AR := ar # archiver
XX ARFLAGS+= ruv
XX
XX RM := rm # remove a file command
XX RMFLAGS +=
XX
XX# Implicit generation rules for making inferences.
XX# We don't provide .yr or .ye rules here. They're obsolete.
XX# Rules for making *$O
XX %$O : %.c ; $(CC) $(CFLAGS) -c $<
XX %$O : %$P ; $(PC) $(PFLAGS) -c $<
XX %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
XX %$O : %.cl ; class -c $<
XX %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
XX
XX# Executables
XX %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
XX
XX# lex and yacc rules
XX %.c : %.y ; $(YACC) $(YFLAGS) $<; mv $(YTAB).c $@
XX %.c : %.l ; $(LEX) $(LFLAGS) $<; mv $(LEXYY).c $@
XX
XX# RCS support
XX.IF $(_HAVE_RCS)
XX % : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V;- $(CO) $(COFLAGS) $@
XX .NOINFER : $$(@:d)RCS$$(DIRSEPSTR)$$(@:f)$V
XX.END
XX
XX# SCCS support
XX.IF $(_HAVE_SCCS)
XX % : s.% ; get $@
XX .NOINFER : s.%
XX.END
XX
XX# Recipe to make archive files.
XX%$A :
XX[
XX $(AR) $(ARFLAGS) $@ $?
XX $(RM) $(RMFLAGS) $?
XX]
XX
XX# DMAKE uses this recipe to remove intermediate targets
XX.REMOVE :; $(RM) -f $<
XX
XX# AUGMAKE extensions for SYSV compatibility
XX@B = $(@:b)
XX@D = $(@:d)
XX@F = $(@:f)
XX*B = $(*:b)
XX*D = $(*:d)
XX*F = $(*:f)
XX<B = $(<:b)
XX<D = $(<:d)
XX<F = $(<:f)
XX?B = $(?:b)
XX?F = $(?:f)
XX?D = $(?:d)
XX
XX# Turn warnings back to previous setting.
XX.SILENT := $(__.SILENT)
XX
XX# Local init file if any, gets parsed before user makefile
XX.INCLUDE .IGNORE: "_startup.mk"
XSHAR_EOF
Xchmod 0640 os2/mscdos/dmake.ini || echo "restore of os2/mscdos/dmake.ini fails"
Xset `wc -c os2/mscdos/dmake.ini`;Sum=$1
Xif test "$Sum" != "3820"
Xthen echo original size 3820, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/lib.rsp &&
XX
XSHAR_EOF
Xchmod 0640 os2/mscdos/lib.rsp || echo "restore of os2/mscdos/lib.rsp fails"
Xset `wc -c os2/mscdos/lib.rsp`;Sum=$1
Xif test "$Sum" != "1"
Xthen echo original size 1, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/mk40.cmd &&
XXmkdir objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX infer.c
XXmv infer.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX make.c
XXmv make.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX stat.c
XXmv stat.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX expand.c
XXmv expand.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX string.c
XXmv string.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX hash.c
XXmv hash.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX dag.c
XXmv dag.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX dmake.c
XXmv dmake.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX path.c
XXmv path.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX imacs.c
XXmv imacs.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX sysintf.c
XXmv sysintf.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX parse.c
XXmv parse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX getinp.c
XXmv getinp.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX quit.c
XXmv quit.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX basename.c
XXmv basename.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX dump.c
XXmv dump.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX macparse.c
XXmv macparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX rulparse.c
XXmv rulparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX percent.c
XXmv percent.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX function.c
XXmv function.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX os2\ruletab.c
XXmv ruletab.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX os2\runargv.c
XXmv runargv.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX os2\_chdir.c
XXmv _chdir.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX os2\switchar.c
XXmv switchar.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX msdos\dirbrk.c
XXmv dirbrk.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX msdos\arlib.c
XXmv arlib.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX unix\rmprq.c
XXmv rmprq.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX unix\explode.c
XXmv explode.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -mC -DM_I86=1 -D__STDC__=1 -B2 C2L -WX os2\mscdos\tempnam.c
XXmv tempnam.obj objects
XXlink @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,@os2\mscdos\lib.rsp/ST:8000,os2\dmake.def
XSHAR_EOF
Xchmod 0640 os2/mscdos/mk40.cmd || echo "restore of os2/mscdos/mk40.cmd fails"
Xset `wc -c os2/mscdos/mk40.cmd`;Sum=$1
Xif test "$Sum" != "3763"
Xthen echo original size 3763, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/mk50.cmd &&
XXmkdir objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs infer.c
XXmv infer.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs make.c
XXmv make.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs stat.c
XXmv stat.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs expand.c
XXmv expand.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs string.c
XXmv string.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs hash.c
XXmv hash.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs dag.c
XXmv dag.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs dmake.c
XXmv dmake.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs path.c
XXmv path.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs imacs.c
XXmv imacs.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs sysintf.c
XXmv sysintf.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs parse.c
XXmv parse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs getinp.c
XXmv getinp.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs quit.c
XXmv quit.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs basename.c
XXmv basename.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs dump.c
XXmv dump.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs macparse.c
XXmv macparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs rulparse.c
XXmv rulparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs percent.c
XXmv percent.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs function.c
XXmv function.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs os2\ruletab.c
XXmv ruletab.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs os2\runargv.c
XXmv runargv.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs os2\_chdir.c
XXmv _chdir.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs os2\switchar.c
XXmv switchar.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs msdos\dirbrk.c
XXmv dirbrk.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs msdos\arlib.c
XXmv arlib.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs unix\rmprq.c
XXmv rmprq.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs unix\explode.c
XXmv explode.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=500 -B2 C2L -WX -Oscl -Gs os2\mscdos\tempnam.c
XXmv tempnam.obj objects
XXlink @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,@os2\mscdos\lib.rsp/ST:8000 /exe /packc /batch,os2\dmake.def
XSHAR_EOF
Xchmod 0640 os2/mscdos/mk50.cmd || echo "restore of os2/mscdos/mk50.cmd fails"
Xset `wc -c os2/mscdos/mk50.cmd`;Sum=$1
Xif test "$Sum" != "3840"
Xthen echo original size 3840, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/mk51.cmd &&
XXmkdir objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs infer.c
XXmv infer.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs make.c
XXmv make.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs stat.c
XXmv stat.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs expand.c
XXmv expand.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs string.c
XXmv string.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs hash.c
XXmv hash.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs dag.c
XXmv dag.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs dmake.c
XXmv dmake.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs path.c
XXmv path.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs imacs.c
XXmv imacs.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs sysintf.c
XXmv sysintf.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs parse.c
XXmv parse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs getinp.c
XXmv getinp.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs quit.c
XXmv quit.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs basename.c
XXmv basename.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs dump.c
XXmv dump.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs macparse.c
XXmv macparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs rulparse.c
XXmv rulparse.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs percent.c
XXmv percent.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs function.c
XXmv function.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs os2\ruletab.c
XXmv ruletab.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs os2\runargv.c
XXmv runargv.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs os2\_chdir.c
XXmv _chdir.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs os2\switchar.c
XXmv switchar.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs msdos\dirbrk.c
XXmv dirbrk.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs msdos\arlib.c
XXmv arlib.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs unix\rmprq.c
XXmv rmprq.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs unix\explode.c
XXmv explode.obj objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D_MSC_VER=510 -B2 C2L -WX -Oscl -Gs os2\mscdos\tempnam.c
XXmv tempnam.obj objects
XXlink @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,@os2\mscdos\lib.rsp/ST:8000 /exe /packc /batch,os2\dmake.def
XSHAR_EOF
Xchmod 0640 os2/mscdos/mk51.cmd || echo "restore of os2/mscdos/mk51.cmd fails"
Xset `wc -c os2/mscdos/mk51.cmd`;Sum=$1
Xif test "$Sum" != "3840"
Xthen echo original size 3840, current size $Sum;fi
Xsed 's/^X//' << 'SHAR_EOF' > os2/mscdos/mk60.cmd &&
XXmkdir objects
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\infer.obj infer.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\make.obj make.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\stat.obj stat.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\expand.obj expand.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\string.obj string.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\hash.obj hash.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\dag.obj dag.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\dmake.obj dmake.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\path.obj path.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\imacs.obj imacs.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\sysintf.obj sysintf.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\parse.obj parse.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\getinp.obj getinp.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\quit.obj quit.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\basename.obj basename.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\dump.obj dump.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\macparse.obj macparse.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\rulparse.obj rulparse.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\percent.obj percent.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\function.obj function.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\ruletab.obj os2\ruletab.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\runargv.obj os2\runargv.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\_chdir.obj os2\_chdir.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\switchar.obj os2\switchar.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\dirbrk.obj msdos\dirbrk.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\arlib.obj msdos\arlib.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\rmprq.obj unix\rmprq.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\explode.obj unix\explode.c
XXcl -c -DHELP -I. -Icommon -Ios2 -DOS2 -G2 -Ios2\mscdos -AC -D__STDC__=1 -B2 C2L -WX -Osecgl -Gs -Foobjects\tempnam.obj os2\mscdos\tempnam.c
XXlink @os2\mscdos\obj.rsp,dmake.exe,NUL.MAP,@os2\mscdos\lib.rsp/ST:8000 /exe /packc /batch,os2\dmake.def
SHAR_EOF
echo "End of part 1, continue with part 2"
echo "2" > s2_seq_.tmp
exit 0
--
--------------------------------------------------------------------------------
"This is almost worth the HIGH blood pressure!" he |Dennis Vadura
thought as yet another mosquito exploded.-R.Patching|dvadura@dragon.uwaterloo.ca
================================================================================