Subversion Repositories DevTools

Rev

Rev 6177 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6177 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
require "$ARGV[1]";
12
 
13
# subdirectories to recurse (if any) and target platform(s),
14
#    the following section(s) is called for each target ..
15
#
4995 dpurdie 16
# eg
227 dpurdie 17
#   SubDir('SubDir1', 'SubDir2');
18
#   Platform( 'WIN32', 'MOS68K', 'MOSCF' );
19
 
20
#
21
# Build platform definitions ..
22
#
23
Platform( '*' );
24
 
25
#
26
# Specify directories to search to locate source and header files
27
#
28
AddDir     ( '*', "$ProjectBase/common" );
29
AddIncDir  ( '*', "$ProjectBase/include" );
30
 
31
############################################################################
32
#   Define the source files
33
#
34
AddSrcDir  ( '*'    , "src" );
35
AddDir     ( '*'    , "inc" );
36
Src        ( '*'    , "source1.c" );
37
Src        ( '*'    , "source2.c" );
38
Src        ( 'WIN'  , "win_source.c" );
39
Src        ( 'MOS'  , "mos_source.c" );
40
Src        ( '*',     "MyApi.h" );
41
 
42
#
43
#   Build and install the library
44
Lib        ( '*'    , "MyPackage", @OBJS  );
45
InstallLib ( '*'    , "MyPackage" );
46
InstallHdr ( '*'    , @CHDRS ,"--Strip" );
47
 
48
 
49
#.............................................................................
50
# Packaging definitions
51
#
52
 
53
PackageHdr  ( '*', @CHDRS ,"--Strip" );
54
PackageLib  ( '*', @LIBS );
55
 
56
#..
57
#
58
PackageFile ( '*'   , 'descpkg' );
59
 
60
#.............................................................................
61
# Finally generate the makefile
62
#
63
MakefileGenerate();
64
 
65
#..  Successful termination
66
1;
67