Subversion Repositories DevTools

Rev

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

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