summaryrefslogtreecommitdiff
path: root/util/cf/oldlib.rules
blob: 3ee19eb79a8353c8fb0b7fe02992822c0cbd1488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* You should not use these any more, use new Library.tmpl insead */

XCOMM $Xorg: oldlib.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $

/*
 * ProfiledLibraryObjectRule - generate make rules to build both profiled
 * and "normal" objects.
 */
#ifndef ProfiledLibraryObjectRule
#define	ProfiledLibraryObjectRule()					@@\
all::									@@\
	LibMkdir(profiled)						@@\
									@@\
.c.o:									@@\
	ProfiledLibObjCompile(NullParameter)				@@\
	NormalLibObjCompile(NullParameter)				@@\
									@@\
clean::									@@\
	LibCleanDir(profiled)						@@\

#endif /* ProfiledLibraryObjectRule */


/*
 * DebuggedLibraryObjectRule - generate make rules to build both debuggable
 * and "normal" objects.
 */
#ifndef DebuggedLibraryObjectRule
#define	DebuggedLibraryObjectRule()					@@\
all::									@@\
	LibMkdir(debugger)						@@\
									@@\
.c.o:									@@\
	DebuggedLibObjCompile(NullParameter)				@@\
	NormalLibObjCompile(NullParameter)				@@\
									@@\
clean::									@@\
	LibCleanDir(debugger)						@@\

#endif /* DebuggedLibraryObjectRule */


/*
 * DebuggedAndProfiledLibraryOjbectRule - generate make rules to build
 * debuggable, profiled, and "normal" objects.
 */
#ifndef DebuggedAndProfiledLibraryObjectRule
#define	DebuggedAndProfiledLibraryObjectRule()				@@\
all::									@@\
	LibMkdir(profiled)						@@\
	LibMkdir(debugger)						@@\
									@@\
.c.o:									@@\
	ProfiledLibObjCompile(NullParameter)				@@\
	DebuggedLibObjCompile(NullParameter)				@@\
	NormalLibObjCompile(NullParameter)				@@\
									@@\
clean::									@@\
	LibCleanDir(profiled)						@@\
	LibCleanDir(debugger)						@@\

#endif /* DebuggedAndProfiledLibraryObjectRule */


/*
 * SpecialProfiledObjectRule - generate rules to compile a file with special
 * flags and to make a profiled version.
 */
#ifndef SpecialProfiledObjectRule
#define	SpecialProfiledObjectRule(objs,depends,options)			@@\
all::									@@\
	LibMkdir(profiled)						@@\
									@@\
objs:	depends								@@\
	ProfiledLibObjCompile(options)					@@\
	NormalLibObjCompile(options)
#endif /* SpecialProfiledObjectRule */


/*
 * SpecialDebuggedObjectRule - generate rules to compile a file with special
 * flags and to make a debuggable version.
 */
#ifndef SpecialDebuggedObjectRule
#define	SpecialDebuggedObjectRule(objs,depends,options)			@@\
all::									@@\
	LibMkdir(debugger)						@@\
									@@\
objs:	depends								@@\
	DebuggedLibObjCompile(options)					@@\
	NormalLibObjCompile(options)
#endif /* SpecialDebuggedObjectRule */


/*
 * SpecialDebuggedAndProfiledObjectRule - generate rules to compile a file 
 * with special flags and to make debuggable and profiled versions.
 */
#ifndef SpecialDebuggedAndProfiledObjectRule
#define	SpecialDebuggedAndProfiledObjectRule(objs,depends,options)	@@\
all::									@@\
	LibMkdir(profiled)						@@\
	LibMkdir(debugger)						@@\
									@@\
objs:	depends								@@\
	ProfiledLibObjCompile(options)					@@\
	DebuggedLibObjCompile(options)					@@\
	NormalLibObjCompile(options)
#endif /* SpecialDebuggedAndProfiledObjectRule */