| 229 |
dpurdie |
1 |
#.!/bin/perl
|
|
|
2 |
# Copyright (C) 1998-2003 ERG Limited, All rights reserved
|
|
|
3 |
#
|
|
|
4 |
# Module name : build.pl
|
|
|
5 |
# Module type : Makefile system
|
|
|
6 |
# Environment(s): n/a
|
|
|
7 |
#
|
|
|
8 |
# Description: Root build for UD
|
|
|
9 |
#
|
|
|
10 |
#.........................................................................#
|
|
|
11 |
|
|
|
12 |
#.. Build system
|
|
|
13 |
#
|
|
|
14 |
$MAKELIB_PL = "$ENV{ 'GBE_TOOLS' }/makelib.pl";
|
|
|
15 |
$BUILDLIB_PL = "$ENV{ 'GBE_TOOLS' }/buildlib.pl";
|
|
|
16 |
|
|
|
17 |
require "$BUILDLIB_PL";
|
|
|
18 |
require "$MAKELIB_PL";
|
|
|
19 |
|
|
|
20 |
#.. Toolset configuration
|
|
|
21 |
#
|
|
|
22 |
|
|
|
23 |
#.. Product configuration
|
|
|
24 |
#
|
|
|
25 |
BuildAlias ( 'LMOS,--Target', 'LMOS_WIN32', 'LMOS_linux_i386' );
|
|
|
26 |
BuildAlias ( 'MOS,--Target', 'MOS68K', 'MOSCF' );
|
|
|
27 |
|
|
|
28 |
BuildProduct ( 'PCP', 'LMOS,--OnlyDebug', 'MOS68K,--OnlyDebug');
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
BuildName ( 'MyMosProject 1.0.0.example' );
|
|
|
32 |
BuildSnapshot ();
|
|
|
33 |
BuildAccessPerms();
|
|
|
34 |
BuildInterface ( 'local' );
|
|
|
35 |
BuildInterface ( 'interface' );
|
|
|
36 |
|
|
|
37 |
#.. Build source tree makefile(s)
|
|
|
38 |
# Use LinkPkgArchive or BuildPkgArchive
|
|
|
39 |
#
|
|
|
40 |
LinkPkgArchive ( 'daf_tools', '25.1.0000.cr' );
|
|
|
41 |
LinkPkgArchive ( 'mos_api', '5.11.0.cr' );
|
|
|
42 |
LinkPkgArchive ( 'mos_pcp5522', '5.13.0.cr' );
|
|
|
43 |
LinkPkgArchive ( 'mos_tools', '1.0.0.cr' );
|
|
|
44 |
LinkPkgArchive ( 'lmos', '25.2.1.cr' );
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
#####################################################################
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
#
|
|
|
51 |
# Specify subdirectories to process
|
|
|
52 |
#
|
|
|
53 |
BuildSubDir ('static-lib');
|
|
|
54 |
BuildSubDir ('thx-module');
|
|
|
55 |
|
|
|
56 |
#
|
|
|
57 |
# Generate the Makefile
|
|
|
58 |
BuildDescpkg ();
|
|
|
59 |
BuildMake ();
|
|
|
60 |
|