Subversion Repositories tendra.SVN

Rev

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

Rev Author Line No. Line
2 7u83 1
#
2
#   		 Crown Copyright (c) 1997
3
#   
4
#   This TenDRA(r) Computer Program is subject to Copyright
5
#   owned by the United Kingdom Secretary of State for Defence
6
#   acting through the Defence Evaluation and Research Agency
7
#   (DERA).  It is made available to Recipients with a
8
#   royalty-free licence for its use, reproduction, transfer
9
#   to other parties and amendment for any purpose not excluding
10
#   product development provided that any such use et cetera
11
#   shall be deemed to be acceptance of the following conditions:-
12
#   
13
#       (1) Its Recipients shall ensure that this Notice is
14
#       reproduced upon any copies or amended versions of it;
15
#   
16
#       (2) Any amended version of it shall be clearly marked to
17
#       show both the nature of and the organisation responsible
18
#       for the relevant amendment or amendments;
19
#   
20
#       (3) Its onward transfer from a recipient to another
21
#       party shall be deemed to be that party's acceptance of
22
#       these conditions;
23
#   
24
#       (4) DERA gives no warranty or assurance as to its
25
#       quality or suitability for any purpose and DERA accepts
26
#       no liability whatsoever in relation to any use to which
27
#       it may be put.
28
#
29
 
30
 
31
#
32
# MAKE_MF INITIALISATION FILE FOR UNIX
33
#
34
# Do not delete the +init line.
35
#
36
 
37
+munix
38
+init
39
 
40
 
41
#
42
# MACHINE CONFIGURATION
43
#
44
 
45
+C	.
46
+W	.
47
-o	a.out
48
+I	/usr/include
49
+L	/lib
50
+L	/usr/lib
51
 
52
 
53
#
54
# EXECUTABLE DEFINITIONS
55
#
56
 
57
+V	# Standard variables
58
+V	
59
+V	CC=tcc %[Og]
60
+V	TCCOPTS=%[YXef]
61
+V	CCOPTS=${TCCOPTS} %I %[DU]
62
+V	MAIN_CC=${CC} ${CCOPTS} -c
63
+V	LINK_CC=${CC} ${TCCOPTS} %L
64
+V	LIBS=%[l]
65
+V
66
+V	REMOVE=rm -f
67
+V	MOVE=mv
68
+V	COPY=cp
69
+V	ECHO=echo
70
+V	SHELL=/bin/sh
71
+V
72
 
73
 
74
#
75
# LINKER RULES
76
#
77
 
78
+V	# Dependencies and construction rules
79
+V
80
+V	NAME=%O
81
+V	EXTRA=
82
+V	EXTRA_CLEAN=
83
+V	EXTRA_CLOBBER=
84
+V
85
+V	OFILES=%o
86
+V
87
+R	${NAME} : ${OFILES}
88
+R\t	${LINK_CC} -o ${NAME} ${OFILES} ${LIBS}
89
+R
90
+R	all : ${EXTRA} ${NAME}
91
+R\t	@${ECHO} all done
92
+R
93
+R	extra : ${EXTRA}
94
+R\t	@${ECHO} done
95
+R
96
 
97
 
98
#
99
# COMPILER RULES
100
#
101
 
102
+R:o
103
+R	%X : %Z
104
+R\t	${MAIN_CC} %Y
105
+R
106
+R:<
107
 
108
 
109
#
110
# CLEAN-UP AND ADDITIONAL RULES
111
#
112
 
113
+R	clean : ${EXTRA_CLEAN}
114
+R\t	${REMOVE} ${OFILES}
115
+R\t	${REMOVE} core
116
+R
117
+R	clobber : clean ${EXTRA_CLOBBER}
118
+R\t	${REMOVE} ${NAME}