home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DMAKE38A.ZIP / README / OS2 < prev    next >
Text File  |  1992-01-22  |  6KB  |  142 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.      ibm      - IBM C2 compile.
  33.  
  34.    Based on the compiler you have installed and whether or not you
  35.    want the swapping version of dmake, you should select the appropriate
  36.    target and issue 'make.cmd target'.
  37.  
  38.    The command file runs a second command script that comes with the
  39.    distribution which compiles the sources using the appropriate compiler and
  40.    flags.  The MSC Versions of the batch files should not require any further
  41.    user intervention during the compile.
  42.  
  43.    By default the command files make an executable that will run on an 8088
  44.    cpu and up.  You can change that by making the initial version and then
  45.    editing the config.mk file found in os2/mscdos and selecting a diferrent
  46.    cpu type by supplying the appropriate compiler flags.
  47.    You then need to remake dmake again but this time use dmake itself,
  48.    see below.
  49.  
  50.  
  51. Using dmake to Make itself:
  52. ---------------------------
  53.    If you use dmake to make itself you must first set a number of makefile
  54.    control variables, either through the environment or on the command line.
  55.  
  56.    The following variables must be set:
  57.  
  58.     OS           - defines operating system (must be set)
  59.     OSRELEASE      - particular version of it.
  60.     OSENVIRNOMENT  - more customization (not needed for OS/2)
  61.  
  62.    These three variables should be defined in your environment.  Valid values
  63.    for them are listed in the dmake makefile.mk file.  For example, if you
  64.    are using OS/2, with Microsoft-C then the valid settings are:
  65.  
  66.     set OS=os2
  67.     set OSRELEASE=mscdos
  68.  
  69.    dmake searches for an initial startup file, you should set the environment
  70.    variable MAKESTARTUP to contain the full path to the startup file, eg:
  71.  
  72.     set MAKESTARTUP=\init\dmake.ini
  73.  
  74.    The dmake makefile has several variables that can be user specified and
  75.    default to reasonable values if not set.
  76.  
  77.     MODEL   - defines the model to compile, valid values are
  78.           {s,c,m, or l}, defaults to 'l' (ie. large) model
  79.           if unspecified.
  80.  
  81.     MSC_VER - defines the version of Microsoft C in use, should be set to
  82.           one of 4.0, 5.0, 5.1 or 6.0; defaults to 6.0.
  83.  
  84.     DEBUG   - If set to '1' then make the debugging version of dmake, this
  85.           will also set MODEL to 'l'.
  86.  
  87.    To set the above variables you must specify them on the dmake command line
  88.    or insert them into the makefile.mk script.
  89.  
  90.  
  91.  
  92. OS/2 Specifics
  93. --------------
  94.  
  95.    There is a small number of OS/2 specific features that need to be
  96.    stated.  
  97.  
  98.    1. The environment variables TMP as well as TMPDIR are checked for the
  99.       location of the directory where dmake should place any temporary files.
  100.       TMPDIR is checked before TMP.
  101.  
  102.    2. Appropriate limits are setup for MAXPROCESSES and buffer sizes etc.
  103.       See output of 'dmake -V'.
  104.  
  105.    3. By default dmake will look for the startup.mk file in the path:
  106.           
  107.       $(INIT)/dmake.ini
  108.  
  109.       This is more in keeping with OS/2 philosophy.  You may still rename
  110.       and put it anywhere else you like by defining the MAKESTARTUP
  111.       environment variable.
  112.  
  113.    4. The OS/2 directory contains files required by Kai Rommel's compiler
  114.       shell.  However you do not need the compiler shell to build dmake.
  115.  
  116.    5. Swapping the dmake binary to disk is not supported under OS/2.
  117.  
  118.  
  119. Other notes:
  120. ------------
  121.    dmake does not care if you are running cmd.exe or some other command
  122.    interpretter, you must however specify the proper values of the environment
  123.    variables SHELL, SHELLFLAGS, GROUPSHELL, and GROUPFLAGS in order for things
  124.    to work correctly.  Read the man page first.
  125.  
  126.    Group recipes under OS/2 that use cmd.exe as the command interpretter
  127.    require you to set the GROUPSUFFIX macro.
  128.  
  129.    As shipped the startup.mk files try to figure out what
  130.    command interpretter you are using and set things up appropriately.
  131.    Two command interpretters are supported in the shipped startup.mk file,
  132.    cmd.exe (via COMSPEC), and the MKS Korn shell.
  133.  
  134.    dmake does not contain any builtin commands.  It gets all commands it
  135.    executes from an external file system.  It is therefore most useful if it
  136.    is used in conjunction with an environment similar to that provided by
  137.    the MKS Tool kit, or equivalent.
  138.  
  139.    dmake now supports the MKS argument passing conventions.  The facility is
  140.    enabled by setting .MKSARGS:=1 and is set by default in the startup.mk file
  141.    if an MKS Korn shell is detected as being the active command interpretter.
  142.