| 2072 |
dpurdie |
1 |
# Copyright (C) 1998-2008 ERG Limited, All rights reserved
|
|
|
2 |
#
|
|
|
3 |
# Module name : build.pl
|
|
|
4 |
# Module type : Makefile system
|
|
|
5 |
# Environment(s): n/a
|
|
|
6 |
#
|
|
|
7 |
# Description: build.pl for CopyFile
|
|
|
8 |
#
|
|
|
9 |
# CopyFile is a native utility used by JATS to install
|
|
|
10 |
# and uninstall files.
|
|
|
11 |
#
|
|
|
12 |
# Reasons for its existance
|
|
|
13 |
# 1) Previously used 'shell' script for Windows and Unix
|
|
|
14 |
# This was very sow under windows.
|
|
|
15 |
# This is a native program it should be executable by
|
|
|
16 |
# make without the need to invoke a cmd.exe layer
|
|
|
17 |
#
|
|
|
18 |
#
|
|
|
19 |
# 2) All the Windows 'copy' utilities have path limits
|
|
|
20 |
# These can be overcome
|
|
|
21 |
#
|
|
|
22 |
#.........................................................................#
|
|
|
23 |
|
|
|
24 |
#.. Build system
|
|
|
25 |
#
|
|
|
26 |
$MAKELIB_PL = "$ENV{ GBE_TOOLS }/makelib.pl";
|
|
|
27 |
$BUILDLIB_PL = "$ENV{ GBE_TOOLS }/buildlib.pl";
|
|
|
28 |
|
|
|
29 |
require "$BUILDLIB_PL";
|
|
|
30 |
require "$MAKELIB_PL";
|
|
|
31 |
|
|
|
32 |
#.. Product configuration
|
|
|
33 |
#
|
|
|
34 |
BuildPlatforms ('SOLARIS,--OnlyDebug');
|
|
|
35 |
BuildPlatforms ('LINUX,--OnlyDebug');
|
|
|
36 |
BuildPlatforms ('WIN32,--OnlyProd');
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
BuildName ( 'CopyFile 0.0.0000 cr' );
|
|
|
40 |
BuildInterface ( 'local' );
|
|
|
41 |
BuildInterface ( 'interface' );
|
|
|
42 |
|
|
|
43 |
# Specify subdirectories to process
|
|
|
44 |
#
|
|
|
45 |
BuildSubDir ( 'src' );
|
|
|
46 |
|
|
|
47 |
#
|
|
|
48 |
# Generate the descpkg and Makefiles
|
|
|
49 |
BuildDescpkg ();
|
|
|
50 |
BuildMake ();
|
|
|
51 |
|