Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
#..
2
# Copyright (C) 1999-2000 ERG Limited, All rights reserved
3
#
4
# Module name:  Makelib.pl
5
# Module type:  Makefile system
6
#
7
# Description:  SH
8
#
9
# Version   Who      Date        Description
10
# 1.0       APY      24/08/99    Created
11
#
12
# $Source: /cvsroot/device/DEVL/UTILS/SH/MAKEFILE.PL,v $
13
# $Revision: 1.1 $ $Date: 2002/08/02 06:49:31 $ $State: Exp $
14
# $Author: adamy $ $Locker:  $
15
#...........................................................................
16
 
17
# exec build system
18
#
19
die "Usage: Makefile.pl rootdir Makelib.pl\n"
20
    unless( $#ARGV+1 >= 2 );
21
require "$ARGV[1]";
22
 
23
# subdirectories to recurse (if any) and target platform(s),
24
#   the following section(s) is called for each target ..
25
#   eg SubDir('SUBDIR1', 'SUBDIR2');
26
#..
27
#(none)
28
 
29
# build platform definitions ..
30
#   eg Platform('P386', 'M68K');
31
#..
32
Platform('DOS16', 'DOS32');
33
 
34
#.............................................................................
35
# Platforms definitions
36
#
37
 
38
# Build flags and paths:
39
#   eg  AddCFlags( '*', '-DDOSOMETIME' );
40
#       AddIncDir( '*', '../INC' );
41
#       AddSrcDir( '*', 'SUBDIR' );
42
#..
43
AddIncDir( '*', 'INCLUDE' );
44
AddCFlags( '*', '-DOS_TYPE=OS_DOS' );
45
 
46
# Any new source types
47
#   eg  AddSourceType( '.xxx', '.asm' );
48
#..
49
#(none)
50
 
51
# Any source/headers etc
52
#   eg  Src( '*', 'Makefile.pl' [, ...] )
53
#..
54
Src( '*',       'sh1.c' );
55
Src( '*',       'sh2.c' );
56
Src( '*',       'sh3.c' );
57
Src( '*',       'sh4.c' );
58
Src( '*',       'sh5.c' );
59
Src( '*',       'sh6.c' );
60
Src( '*',       'sh7.c' );
61
Src( '*',       'sh8.c' );
62
Src( '*',       'sh9.c' );
63
Src( '*',       'sh10.c' );
64
Src( '*',       'sh11.c' );
65
Src( '*',       'sh12.c' );
66
Src( '*',       'sh13.c' );
67
Src( '*',       'glob.c' );
68
Src( '*',       'system.c' );
69
 
70
# Files to be generated:
71
#   eg  Generate( 'P386', 'aa.cc', 'aa.h' );
72
#..
73
#(none)
74
 
75
# Addition rules:
76
#   eg  Rule( 'P386', "aa.h:\n" . "\tbuild aa.h" );
77
#..
78
#(none)
79
 
80
# Headers to be installed
81
#   eg  InstallHdr( '*', 'public.h' );
82
#..
83
#(none)
84
 
85
# Libraries to be made
86
#   eg  Lib( 'P386,M68K', 'lib', 'src1', 'src2', '-args' );
87
#       Lib( '*', 'lib', @OBJS );
88
#..
89
#(none)
90
 
91
# Libraries to be installed into the 'export' lib directory:
92
#   eg  InstallLib( 'P386', 'lib' );
93
#..
94
#(none)
95
 
96
# Applications to be built
97
#   eg  Prog( ... )
98
#..
99
Prog( 'DOS16',	'sh16', @OBJS, '--Stack=32k', '-llibdos' );
100
Prog( 'DOS32',	'sh32', @OBJS, '--Stack=100k', '-llibdos' );
101
 
102
# Applications to be installed
103
#   eg  InstallProg( ... )
104
#..
105
#(none)
106
 
107
# Packaging installation
108
#..
109
#(none)
110
 
111
#.............................................................................
112
# Finally generate the makefile
113
#..
114
MakefileGenerate();
115