VMS Help
MMS, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

  1 - Description File

    The following description file directs MMS to build MYPROG.EXE:

         ! Macro definitions
         LIBRARYMODULES = A, B, C, D, E
         LIBRARIES = MYPROG.OLB($(LIBRARYMODULES)) - ! project library
                     SYS$LIBRARY:CRTLIB.OLB          ! C Runtime Library
         ! Dependencies
         MYPROG.EXE : $(LIBRARIES)
              LINK/EXEC=MYPROG MYPROG/LIB/INCLUDE=(A)
         A.OBJ, B.OBJ : DEFS.REQ
         D.OBJ, E.OBJ : COMMON.H
         E.OBJ : DATA.H

    If this file is named DESCRIP.MMS, the following command  causes  MMS
    to use the file to build MYPROG.EXE:

         $ MMS

  2 - MMS Actions

    If the current default directory contains the following files:

             A.BLI;1             B.BLI;1             C.MAR;1
             COMMON.H;1          D.C;1               DATA.H;1
             DEFS.REQ;1          DESCRIP.MMS;1       E.C;1

    MMS will execute the following actions as  it  processes  the  sample
    description file:

         BLISS  A.BLI
         IF "''F$SEARCH("MYPROG.OLB")'" .EQS. "" THEN LIBRARY/CREATE
         MYPROG.OLB
         LIBRARY/REPLACE MYPROG.OLB A.OBJ
         BLISS  B.BLI
         IF "''F$SEARCH("MYPROG.OLB")'" .EQS. "" THEN LIBRARY/CREATE
         MYPROG.OLB
         LIBRARY/REPLACE MYPROG.OLB B.OBJ
         MACRO C.MAR
         IF "''F$SEARCH("MYPROG.OLB")'" .EQS. "" THEN LIBRARY/CREATE
         MYPROG.OLB
         LIBRARY/REPLACE MYPROG.OLB C.OBJ
         CC /NOLIST D.C
         IF "''F$SEARCH("MYPROG.OLB")'" .EQS. "" THEN LIBRARY/CREATE
         MYPROG.OLB
         LIBRARY/REPLACE MYPROG.OLB D.OBJ
         CC /NOLIST E.C
         IF "''F$SEARCH("MYPROG.OLB")'" .EQS. "" THEN LIBRARY/CREATE
         MYPROG.OLB
         LIBRARY/REPLACE MYPROG.OLB E.OBJ
         LINK/EXEC=MYPROG MYPROG/LIB/INCLUDE=(A)

    These actions result in the production of all the intermediate  files
    needed  to  produce  MYPROG.EXE.   If  you then delete all the object
    files (.OBJ), and run  MMS  again  using  the  /SKIP  qualifier,  MMS
    informs you that the target MYPROG.EXE is already up-to-date.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.