| 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
|
|
|
51 |
, '--Implib=myThx' );
|
|
|
52 |
|
|
|
53 |
# Rel File
|
|
|
54 |
, '--Rel=sc.rel'
|
|
|
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 |
|