home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DMAKE37S.ZIP / DMAKE / README / OS2 < prev    next >
Encoding:
Text File  |  1991-05-06  |  5.5 KB  |  141 lines

  1. Notes on the OS/2 implementation of dmake:
  2. ==========================================
  3.  
  4. As shipped the DOS versions of dmake will run under OS/2 protected mode.
  5. However, support for a full OS/2 version is also provided.  The OS/2 version
  6. will run in parallel under OS/2.  The port was made possible by files supplied
  7. by:
  8.  
  9.    Duncan Booth   -- (duncanb@ibmpcug.co.uk, Bix:jrichards)
  10.    Kai Uwe Rommel -- (rommel@lan.informatik.tu-muenchen.dbp.de),
  11.  
  12. For which I am grateful.  I have taken the two ports and integrated them 
  13. into a single port using the structure supplied by Duncan Booth, and some
  14. files and OS2'ism supplied by Kai Rommel.
  15.  
  16. If there are any problems with the port then please let myself or one of the
  17. two people above know.  I will then attempt to fix the problem.  I do not
  18. have access to an OS/2 box to verify any problems myself.
  19.  
  20.  
  21. Bootstrapping the binary:
  22. -------------------------
  23.    A make.cmd file is provided to bootstrap the binary.  The file contains
  24.    several targets for bootstrapping.  Invoking the batch file with no
  25.    arguments lists the possibilities shown below.
  26.  
  27.       INDEX:  You must specify one of:
  28.      msc40    - Microsoft C 4.0 compile.
  29.      msc50    - Microsoft C 5.0 compile.
  30.      msc51    - Microsoft C 5.1 compile.
  31.      msc60    - Microsoft C 6.0 compile.
  32.  
  33.    Based on the compiler you have installed and whether or not you
  34.    want the swapping version of dmake, you should select the appropriate
  35.    target and issue 'make.cmd target'.
  36.  
  37.    The command file runs a second command script that comes with the
  38.    distribution which compiles the sources using the appropriate compiler and
  39.    flags.  The MSC Versions of the batch files should not require any further
  40.    user intervention during the compile.
  41.  
  42.    By default the command files make an executable that will run on an 8088
  43.    cpu and up.  You can change that by making the initial version and then
  44.    editing the config.mk file found in os2/mscdos and selecting a diferrent
  45.    cpu type by supplying the appropriate compiler flags.
  46.    You then need to remake dmake again but this time use dmake itself,
  47.    see below.
  48.  
  49.  
  50. Using dmake to Make itself:
  51. ---------------------------
  52.    If you use dmake to make itself you must first set a number of makefile
  53.    control variables, either through the environment or on the command line.
  54.  
  55.    The following variables must be set:
  56.  
  57.     OS           - defines operating system (must be set)
  58.     OSRELEASE      - particular version of it.
  59.     OSENVIRNOMENT  - more customization (not needed for OS/2)
  60.  
  61.    These three variables should be defined in your environment.  Valid values
  62.    for them are listed in the dmake makefile.mk file.  For example, if you
  63.    are using OS/2, with Microsoft-C then the valid settings are:
  64.  
  65.     set OS=os2
  66.     set OSRELEASE=mscdos
  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=\init\dmake.ini
  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.     DEBUG   - If set to '1' then make the debugging version of dmake, this
  84.           will also set MODEL to 'l'.
  85.  
  86.    To set the above variables you must specify them on the dmake command line
  87.    or insert them into the makefile.mk script.
  88.  
  89.  
  90.  
  91. OS/2 Specifics
  92. --------------
  93.  
  94.    There is a small number of OS/2 specific features that need to be
  95.    stated.  
  96.  
  97.    1. The environment variables TMP as well as TMPDIR are checked for the
  98.       location of the directory where dmake should place any temporary files.
  99.       TMPDIR is checked before TMP.
  100.  
  101.    2. Appropriate limits are setup for MAXPROCESSES and buffer sizes etc.
  102.       See output of 'dmake -V'.
  103.  
  104.    3. By default dmake will look for the startup.mk file in the path:
  105.           
  106.       $(INIT)/dmake.ini
  107.  
  108.       This is more in keeping with OS/2 philosophy.  You may still rename
  109.       and put it anywhere else you like by defining the MAKESTARTUP
  110.       environment variable.
  111.  
  112.    4. The OS/2 directory contains files required by Kai Rommel's compiler
  113.       shell.
  114.  
  115.    5. Swapping the dmake binary to disk is not supported under OS/2.
  116.  
  117.  
  118. Other notes:
  119. ------------
  120.    dmake does not care if you are running cmd.exe or some other command
  121.    interpretter, you must however specify the proper values of the environment
  122.    variables SHELL, SHELLFLAGS, GROUPSHELL, and GROUPFLAGS in order for things
  123.    to work correctly.  Read the man page first.
  124.  
  125.    Group recipes under OS/2 that use cmd.exe as the command interpretter
  126.    require you to set the GROUPSUFFIX macro.
  127.  
  128.    As shipped the startup.mk files try to figure out what
  129.    command interpretter you are using and set things up appropriately.
  130.    Two command interpretters are supported in the shipped startup.mk file,
  131.    cmd.exe (via COMSPEC), and the MKS Korn shell.
  132.  
  133.    dmake does not contain any builtin commands.  It gets all commands it
  134.    executes from an external file system.  It is therefore most useful if it
  135.    is used in conjunction with an environment similar to that provided by
  136.    the MKS Tool kit, or equivalent.
  137.  
  138.    dmake now supports the MKS argument passing conventions.  The facility is
  139.    enabled by setting .MKSARGS:=1 and is set by default in the startup.mk file
  140.    if an MKS Korn shell is detected as being the active command interpretter.
  141.