| 2072 |
dpurdie |
1 |
# Copyright (C) 1998-2008 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: makefile.pl CopyFile
|
|
|
9 |
#
|
|
|
10 |
#.........................................................................#
|
|
|
11 |
|
|
|
12 |
die "Usage: Makefile.pl roottest Makelib.pl\n"
|
|
|
13 |
unless( $#ARGV+1 >= 2 );
|
|
|
14 |
require "$ARGV[1]";
|
|
|
15 |
|
|
|
16 |
# Build platform definitions ..
|
|
|
17 |
#
|
|
|
18 |
Platform( '*' );
|
|
|
19 |
|
|
|
20 |
############################################################################
|
|
|
21 |
# Define the source files
|
|
|
22 |
#
|
|
|
23 |
Src ('*', "CopyFile.c"); # For Windows
|
|
|
24 |
|
|
|
25 |
Prog('WIN32' , "CopyFile", "CopyFile" );
|
|
|
26 |
Prog('!WIN32' ,"CopyFile", "CopyFile" );
|
|
|
27 |
|
|
|
28 |
#.............................................................................
|
|
|
29 |
# Packaging definitions
|
|
|
30 |
#
|
|
|
31 |
InstallProg ( '*' , @PROGS );
|
|
|
32 |
PackageProg ( '*' , "CopyFile" );
|
|
|
33 |
|
|
|
34 |
#.............................................................................
|
|
|
35 |
# Finally generate the makefile
|
|
|
36 |
#
|
|
|
37 |
MakefileGenerate();
|
|
|
38 |
|
|
|
39 |
#.. Successful termination
|
|
|
40 |
1;
|
|
|
41 |
|