Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
4995 dpurdie 1
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
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
die "Usage: Makefile.pl rootdir Makelib.pl\n"
13
    unless( $#ARGV+1 >= 2 );
14
require "$ARGV[1]";
15
 
16
#
17
# Build platform definitions ..
18
#
19
Platform    ( '*' );
20
 
21
#.............................................................................
22
#   Build the program (THX)
23
#
24
 
25
Src             ( '*', "ModuleNumbers.cfg", '--FromPackage' );
26
Src             ( '*', "my_module.cfg" );
27
 
28
GenerateFiles   ( '*', "--Tool=mod_if.pl",
29
                       "-s --Prerequisite(ModuleNumbers.cfg)",
30
                       "-s --Prerequisite(my_module.cfg)",
31
                       "-export --GeneratedCommon(myThx_stub.c) " .
32
                       "-r --GeneratedCommon(myThx.rel)",
33
                       "-c --GeneratedCommon(myThx_if.c)",
34
                       "-version=$ScmBuildVersion",
35
                       "-date=$CurrentDate",
36
                       "-m -q" );
37
 
38
SharedLib       ( 'MOS'
39
                , "MyThx"
40
                , @OBJS
41
                , '-ldaf_utils_sc'
42
                , '-ldaf_utils_fileio'
43
                , '-ldaf_utils_crc'
44
                , '-ldaf_dti_stub'
45
 
46
                # inter-module call libraries
47
                , '-ldsi'
48
 
49
                # Module interface
261 dpurdie 50
                , '--Implib=myThx'
227 dpurdie 51
 
52
                # Rel File
261 dpurdie 53
                , '--Rel=myThx.rel'
54
                );
227 dpurdie 55
 
56
#.............................................................................
57
# Install package to aid debugging
58
#
59
InstallHdr  ( '*', @CHDRS ,"--Strip" );
60
InstallLib  ( '*', @SHLIBS, @LIBS );
61
 
62
#.............................................................................
63
# Packaging definitions
64
#
65
PackageLib  ( '*', @SHLIBS, "--Dir=thx", "--Extras=none" );
66
 
67
#.............................................................................
68
# Finally generate the makefile
69
#
70
MakefileGenerate();
71
 
72
#..  Successful termination
73
1;
74