| 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: makefile.pl template example
|
|
|
9 |
#
|
|
|
10 |
#.........................................................................#
|
|
|
11 |
|
|
|
12 |
die "Usage: Makefile.pl rootdir 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 ( '*' , "javac.c" );
|
|
|
24 |
Src ( '*' , "ant.c" );
|
|
|
25 |
|
|
|
26 |
#
|
|
|
27 |
# Build and install the library
|
|
|
28 |
|
|
|
29 |
Prog ( '*', "ant", "ant.c" );
|
|
|
30 |
Prog ( '*', "javac", "javac.c" );
|
|
|
31 |
|
|
|
32 |
#.............................................................................
|
|
|
33 |
# Packaging definitions
|
|
|
34 |
#
|
|
|
35 |
PackageFile ( '*' , 'descpkg' );
|
|
|
36 |
PackageProg ( '*' , @PROGS , '--Dir=BIN.$(GBE_MACHTYPE)', '--Extras=none');
|
|
|
37 |
|
|
|
38 |
#.............................................................................
|
|
|
39 |
# Finally generate the makefile
|
|
|
40 |
#
|
|
|
41 |
MakefileGenerate();
|
|
|
42 |
|
|
|
43 |
#.. Successful termination
|
|
|
44 |
1;
|
|
|
45 |
|