Subversion Repositories DevTools

Rev

Rev 7299 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7300 dpurdie 1
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 2
#
3
# Module name   : Makefile.pl
4
# Module type   : Makefile system
4995 dpurdie 5
# Environment(s): JATS
227 dpurdie 6
#
7
# Description:    makefile.pl template example
8
#
9
#.........................................................................#
10
 
11
die "Usage: Makefile.pl rootdir Makelib.pl\n"
12
    unless( $#ARGV+1 >= 2 );
13
require "$ARGV[1]";
14
 
15
# subdirectories to recurse (if any) and target platform(s),
16
#    the following section(s) is called for each target ..
17
#
18
# eg.   Rules();
19
#   SubDir('SubDir1', 'SubDir2');
20
#   Platform( 'WIN32', 'MOS68K', 'MOSCF' );
21
 
22
#
23
# Build platform definitions ..
24
#
25
Platform( '*' );
26
 
27
#
28
# Specify directories to search to locate source and header files
29
#
30
AddDir     ( '*', "$ProjectBase/common" );
31
AddIncDir  ( '*', "$ProjectBase/include" );
32
 
33
############################################################################
34
#   Define the source files
35
#
36
AddSrcDir  ( '*'    , "src" );
37
AddDir     ( '*'    , "inc" );
38
Src        ( '*'    , "source1.c" );
39
Src        ( '*'    , "source2.c" );
40
Src        ( 'WIN'  , "win_source.c" );
41
Src        ( 'MOS'  , "mos_source.c" );
42
Src        ( '*',     "MyApi.h" );
43
 
44
#
45
#   Build and install the library
46
Lib        ( '*'    , "MyPackage", @OBJS  );
47
InstallLib ( '*'    , "MyPackage" );
48
InstallHdr ( '*'    , @CHDRS ,"--Strip" );
49
 
50
 
51
#.............................................................................
52
# Packaging definitions
53
#
54
 
55
PackageHdr  ( '*', @CHDRS ,"--Strip" );
56
PackageLib  ( '*', @LIBS );
57
 
58
#..
59
#
60
PackageFile ( '*'   , 'descpkg' );
61
 
62
#.............................................................................
63
# Finally generate the makefile
64
#
65
MakefileGenerate();
66
 
67
#..  Successful termination
68
1;
69