home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / DMAKE37E.ZIP / MSDOS < prev    next >
Text File  |  1991-05-06  |  6KB  |  133 lines

  1. Notes on the MSDOS implementation of dmake.
  2.  
  3. Bootstrapping the binary:
  4. -------------------------
  5.    A make.bat file is provided to bootstrap the binary.  The file contains
  6.    several targets for bootstrapping.  Invoking the batch file with no
  7.    arguments lists the possibilities shown below.
  8.  
  9.       INDEX:  You must specify one of:
  10.      tcc      - Turbo C 2.0 compile.
  11.      tccswp   - Turbo C 2.0 compile of swapping dmake.
  12.      bcc      - Borland C++ 2.0 compile.
  13.      bccswp   - Borland C++ 2.0 compile of swapping dmake.
  14.      msc40    - Microsoft C 4.0 compile.
  15.      msc50    - Microsoft C 5.0 compile.
  16.      msc51    - Microsoft C 5.1 compile.
  17.      msc60    - Microsoft C 6.0 compile.
  18.      msc40swp - Microsoft C 4.0, MASM 5.1 compile of swapping dmake.
  19.      msc50swp - Microsoft C 5.0, MASM 5.1 compile of swapping dmake.
  20.      msc51swp - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
  21.      msc60swp - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.
  22.  
  23.    Based on the compiler you have installed and whether or not you
  24.    want the swapping version of dmake, you should select the appropriate
  25.    target and issue 'make.bat target'.
  26.  
  27.    The batch file runs a second batch script that comes with the distribution
  28.    which compiles the sources using the appropriate compiler and flags.  The
  29.    MSC Versions of the batch files should not require any further user
  30.    intervention during the compile.  The Turbo-C version, as a final step,
  31.    invokes tlink with two response files.  The second of these response files,
  32.    named in msdos/tccdos/mk*.bat, contains absolute path names to Turbo-C
  33.    libraries.  You may need to edit these before getting a successful binary
  34.    linked.
  35.  
  36.    By default the batch files make an executable that will run on an 8088
  37.    cpu and up.  You can change that by making the initial version and then
  38.    editing the config.mk files found in either msdos/tccdos or msdos/mscdos
  39.    (depending on compiler you use), and selecting a diferrent cpu type by
  40.    supplying the appropriate compiler flags.  You then need to remake dmake
  41.    again but this time use dmake itself, see below.
  42.  
  43.    Note that the file msdos/exec.uue is a uuencoded version of a BCC++
  44.    compiled exec.obj (from exec.asm).  If you do not have an assembler
  45.    either microsoft MASM or Borland TASM (or some other), you can uudecode
  46.    this file and put it into the appropriate objects directory.
  47.  
  48.  
  49. Using dmake to Make itself:
  50. ---------------------------
  51.    If you use dmake to make itself you must first set a number of makefile
  52.    control variables, either through the environment or on the command line.
  53.  
  54.    The following variables must be set:
  55.  
  56.     OS           - defines operating system (must be set)
  57.     OSRELEASE      - particular version of it.
  58.     OSENVIRNOMENT  - more customization
  59.  
  60.    These three variables should be defined in your environment.  Valid values
  61.    for them are listed in the dmake makefile.mk file.  For example, if you
  62.    are using MSDOS, with Turbo-C then the valid settings are:
  63.  
  64.     set OS=msdos
  65.     set OSRELEASE=tccdos
  66.     set OSENVIRONMENT=
  67.  
  68.    dmake searches for an initial startup file, you should set the environment
  69.    variable MAKESTARTUP to contain the full path to the startup file, eg:
  70.  
  71.     set MAKESTARTUP=d:\usr\lib\startup.mk
  72.  
  73.    The dmake makefile has several variables that can be user specified and
  74.    default to reasonable values if not set.
  75.  
  76.     MODEL   - defines the model to compile, valid values are
  77.           {s,c,m, or l}, defaults to 'c' (ie. compact) model
  78.           if unspecified.
  79.  
  80.     MSC_VER - defines the version of Microsoft C in use, should be set to
  81.           one of 4.0, 5.0, 5.1 or 6.0; defaults to 6.0.
  82.  
  83.     SWAP    - If set to 'y', compile the dmake swapping version of
  84.           spawnvpe.  This has the effect of turning on swapping of the
  85.           executable to disk if the MSDOS version is made.
  86.  
  87.     DEBUG   - If set to '1' then make the debugging version of dmake, this
  88.           will also set MODEL to 'l'.
  89.  
  90.    To set the above variables you must specify them on the dmake command line
  91.    or insert them into the makefile.mk script.
  92.  
  93.  
  94. Memory Requirements and Swapping:
  95. ---------------------------------
  96.    The swapping code currently only swaps to DISK, I have left hooks
  97.    in to accomodate XMS and EMS, I have some code that performs the
  98.    necessary XMS/EMS accesses but have not incorporated it in yet.
  99.    It appears that a ramdisk seems to work just fine.  If anyone
  100.    wishes to fill in the hooks please do and I'll be happy to include
  101.    them in future distributions.
  102.  
  103.  
  104. ^C and stopping a make:
  105. -----------------------
  106.    Thanks to the efforts of Len Reed, appears to now work.  I have been unable
  107.    to hang my machine if it's swapped out and I hit ^C a couple thousand times.
  108.  
  109.  
  110. Other notes:
  111. ------------
  112.    dmake does not care if you are running command.com or some other command
  113.    interpretter, you must however specify the proper values of the environment
  114.    variables SHELL, SHELLFLAGS, GROUPSHELL, and GROUPFLAGS in order for things
  115.    to work correctly.  Read the man page first.
  116.  
  117.    Group recipes under DOS that use command.com as the command interpretter
  118.    require you to set the GROUPSUFFIX macro.
  119.  
  120.    As shipped the startup.mk files for the DOS version try to figure out what
  121.    command interpretter you are using and set things up appropriately.
  122.    Two command interpretters are supported in the shipped startup.mk file,
  123.    command.com, and the MKS Korn shell.
  124.  
  125.    dmake does not contain any builtin commands.  It gets all commands it
  126.    executes from an external file system.  It is therefore most useful if it
  127.    is used in conjunction with an environment similar to that provided by
  128.    the MKS Tool Kit, or equivalent.
  129.  
  130.    dmake now supports the MKS argument passing conventions.  The facility is
  131.    enabled by setting .MKSARGS:=1.  It is set by default in the startup.mk file
  132.    if an MKS Korn shell is detected as being the active command interpretter.
  133.