[SWEXA.WRK]DESCRIP.MMS

!++
!
!  MMS description file:
!       DESCRIP.MMS
!
!  Purpose:
!       Build the SWEXA software
!
!  Copyright:
!       Copyright © 1992 - 2016 Corpita Pty Ltd, Melbourne, Australia
!
!  History:
!       2016-08-08 by SJJ
!           Update architecture support
!       01-Jul-2001 by SLJ
!           Use architecture specific compile time databases
!       16-Jan-1999 by SLJ
!           Add the example database
!       16-Mar-1996 by SLJ
!           Use new AIL directory
!       03-Jul-1994 by SLJ
!           Add documentation back in
!       01-Aug-1992 by Simon L. Jackson
!           Initial version
!
!--

.ignore

.ifdef swrk_alpha
ALL depends_on -
    MESSAGES,-
    DATABASE,-
    LIBRARIES,-
    TARGETS,-
    POSSIBLE_DOCUMENTATION,-
    HOOKS
        @ ! No action required

.ifdef swexa_document
POSSIBLE_DOCUMENTATION depends_on -
    DOCUMENTATION,-
    HELP
        @ ! No action required
.else
POSSIBLE_DOCUMENTATION depends_on -
    SWDEV_SFT_DIR:SWDEV_VERY_OLD_FILE.TXT
        @ ! No action required
.endif
.endif

.ifdef swrk_ia64
ALL depends_on -
    MESSAGES,-
    DATABASE,-
    LIBRARIES,-
    TARGETS,-
    HOOKS
        @ ! No action required
.endif

.ifdef swrk_vax
ALL depends_on -
    MESSAGES,-
    DATABASE,-
    LIBRARIES,-
    TARGETS,-
    HOOKS
        @ ! No action required
.endif

DATABASE depends_on -
    SWEXA_SFT_DIR:SWEXA_DATABASE.RBF,-
    SWEXA_SFT_DIR:SWEXA_DATABASE.RBR
        @ ! No action required

SWEXA_SFT_DIR:SWEXA_DATABASE.RBF depends_on -
    SWEXA_LIB_DIR:SWEXA_DATABASE.TAG
        dbaman execute backup rdb_fil:=swexa_compiletime_database\rbf_fil:=$(mms$target)

SWEXA_SFT_DIR:SWEXA_DATABASE.RBR depends_on -
    SWEXA_LIB_DIR:SWEXA_DATABASE.TAG
        dbaman execute export rdb_fil:=swexa_compiletime_database\rbr_fil:=$(mms$target)

SWEXA_LIB_DIR:SWEXA_DATABASE.TAG depends_on -
    SWEXA_SFT_DIR:SWEXA_DATABASE.SQL,-
    SWEXA_AIL_DIR:SWEXA_METADATA.TAG,-
    SWDBA_SFT_DIR:SWDBA_DATABASE_MENU.COM,-
    SWDBA_SFT_DIR:SWDBA_DOMAINS.SQL,-
    SWDBA_SFT_DIR:SWDBA_ROUTINES.SQL,-
    SWDBA_SFT_DIR:SWDBA_TABLES.SQL,-
    SWDBA_SFT_DIR:SWDBA_VIEWS.SQL
        dbaman execute -
          drop,create,open -
          aij_num:=none\cls_scp:=computer\opn_scp:=computer\rdb_fil:=swexa_compiletime_database
        define sql$database swexa_compiletime_database
        $(touch) $(mms$target)

HOOKS depends_on -
    SWEXA_LIB_DIR:LOGICALS.TAG,-
    SWEXA_LIB_DIR:DIRECTORIES.TAG
        @ ! No action required

SWEXA_LIB_DIR:LOGICALS.TAG depends_on -
    SWEXA_SFT_DIR:LOGICALS.COM,-
    SWEXA_LIB_DIR:DIRECTORIES.TAG
        $(touch) $(mms$source)
        context reset
        $(touch) $(mms$target)

SWEXA_LIB_DIR:DIRECTORIES.TAG depends_on -
    SWEXA_SFT_DIR:DIRECTORIES.COM
        @$(mms$source)
        $(touch) $(mms$target)

LIBRARIES depends_on -
    SHAREABLE_IMAGE_LIBRARY,-
    SYMBOL_LIBRARY
        @ ! No action required

MESSAGES depends_on -
    SWEXA_SFT_DIR:SWEXA_MESSAGES.H
        @ ! No action required

SHAREABLE_IMAGE_LIBRARY depends_on -
    SWEXA_SFT_DIR:SWEXALIB(SWEXAMSG=SWEXA_SFT_DIR:SWEXAMSG.EXE)
        @ ! No action required

SYMBOL_LIBRARY depends_on -
    SWEXA_SFT_DIR:SWEXASYM(SWEXA_MESSAGES=SWEXA_LIB_DIR:SWEXA_MESSAGES.SYM)
        @ ! No action required

SWEXA_SFT_DIR:SWEXA_MESSAGES.H depends_on -
    SWEXA_LIB_DIR:SWEXA_MESSAGES.SYM
        devtools convert/generate/symbols $(mms$source) $(mms$target)

SWEXA_LIB_DIR:SWEXA_MESSAGES.TAG_INC_1,-
SWEXA_LIB_DIR:SWEXA_MESSAGES.TAG_INC_2 -
  depends_on -
    SWEXA_SFT_DIR:SWEXA_MESSAGES.H
        $(touch) $(mms$target)

.ifdef swrk_alpha
.ifdef swexa_document
.include SWEXA_AIL_DIR:SWEXA_DOCUMENTATION
.include SWEXA_AIL_DIR:SWEXA_HELP
.endif
.endif

.include SWEXA_AIL_DIR:SWEXA_METADATA

.include SWEXA_LIB_DIR:SWEXA_DEPENDENCIES
.include SWEXA_LIB_DIR:SWEXA_DEPENDENCIES_GEN
.include SWEXA_LIB_DIR:SWEXA_TARGETS