Subversion Repositories DevTools

Rev

Rev 261 | Rev 7299 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# Copyright (c) VIX TECHNOLOGY (AUST) LTD
#
# Module name   : Makefile.pl
# Module type   : Makefile system
# Environment(s): JATS
#
# Description:
#   JATS makefile to build a THX module
#
#.........................................................................#

die "Usage: Makefile.pl rootdir Makelib.pl\n"
    unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

#
# Build platform definitions ..
#
Platform    ( '*' );

#.............................................................................
#   Build the program (THX)
#
        
Src             ( '*', "ModuleNumbers.cfg", '--FromPackage' );
Src             ( '*', "my_module.cfg" );

GenerateFiles   ( '*', "--Tool=mod_if.pl",
                       "-s --Prerequisite(ModuleNumbers.cfg)",
                       "-s --Prerequisite(my_module.cfg)",
                       "-export --GeneratedCommon(myThx_stub.c) " .
                       "-r --GeneratedCommon(myThx.rel)",
                       "-c --GeneratedCommon(myThx_if.c)",
                       "-version=$ScmBuildVersion",
                       "-date=$CurrentDate",
                       "-m -q" );

SharedLib       ( 'MOS'
                , "MyThx"
                , @OBJS
                , '-ldaf_utils_sc'
                , '-ldaf_utils_fileio'
                , '-ldaf_utils_crc'
                , '-ldaf_dti_stub'

                # inter-module call libraries
                , '-ldsi'

                # Module interface
                , '--Implib=myThx'

                # Rel File
                , '--Rel=myThx.rel'
                );

#.............................................................................
# Install package to aid debugging
#
InstallHdr  ( '*', @CHDRS ,"--Strip" );
InstallLib  ( '*', @SHLIBS, @LIBS );

#.............................................................................
# Packaging definitions
#
PackageLib  ( '*', @SHLIBS, "--Dir=thx", "--Extras=none" );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;