Subversion Repositories DevTools

Rev

Rev 6177 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6177 dpurdie 1
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 2
#
3
# Module name   : Makefile.pl
4
# Module type   : Makefile system
4995 dpurdie 5
# Environment(s): JATS
227 dpurdie 6
#
7
# Description:
8
#   JATS makefile to build a THX module
9
#
10
#.........................................................................#
11
 
12
require "$ARGV[1]";
13
 
14
#
15
# Build platform definitions ..
16
#
17
Platform    ( '*' );
18
 
19
#.............................................................................
20
#   Build the program (THX)
21
#
22
 
23
Src             ( '*', "ModuleNumbers.cfg", '--FromPackage' );
24
Src             ( '*', "my_module.cfg" );
25
 
26
GenerateFiles   ( '*', "--Tool=mod_if.pl",
27
                       "-s --Prerequisite(ModuleNumbers.cfg)",
28
                       "-s --Prerequisite(my_module.cfg)",
29
                       "-export --GeneratedCommon(myThx_stub.c) " .
30
                       "-r --GeneratedCommon(myThx.rel)",
31
                       "-c --GeneratedCommon(myThx_if.c)",
32
                       "-version=$ScmBuildVersion",
33
                       "-date=$CurrentDate",
34
                       "-m -q" );
35
 
36
SharedLib       ( 'MOS'
37
                , "MyThx"
38
                , @OBJS
39
                , '-ldaf_utils_sc'
40
                , '-ldaf_utils_fileio'
41
                , '-ldaf_utils_crc'
42
                , '-ldaf_dti_stub'
43
 
44
                # inter-module call libraries
45
                , '-ldsi'
46
 
47
                # Module interface
261 dpurdie 48
                , '--Implib=myThx'
227 dpurdie 49
 
50
                # Rel File
261 dpurdie 51
                , '--Rel=myThx.rel'
52
                );
227 dpurdie 53
 
54
#.............................................................................
55
# Install package to aid debugging
56
#
57
InstallHdr  ( '*', @CHDRS ,"--Strip" );
58
InstallLib  ( '*', @SHLIBS, @LIBS );
59
 
60
#.............................................................................
61
# Packaging definitions
62
#
63
PackageLib  ( '*', @SHLIBS, "--Dir=thx", "--Extras=none" );
64
 
65
#.............................................................................
66
# Finally generate the makefile
67
#
68
MakefileGenerate();
69
 
70
#..  Successful termination
71
1;
72