Print this page
make: remove SCCS ident stuff
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/make/bin/make/common/default.mk.file
+++ new/usr/src/cmd/make/bin/make/common/default.mk.file
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 1993 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 -# @(#)default.mk.file 1.4 06/12/12
25 -#
26 24
27 25 SUFFIXES = .o .c .c~ .cc .cc~ .s .s~ .S .S~ .ln .f .f~ .F .F~ .l .l~ \
28 26 .mod .mod~ .sym .def .def~ .p .p~ .r .r~ .y .y~ .h .h~ .sh .sh~ \
29 27 .cps .cps~
30 28 .SUFFIXES: $(SUFFIXES)
31 29
32 30 # OUTPUT_OPTION should be defined to "-o $@" when
33 31 # the default rules are used for non-local files.
34 32 OUTPUT_OPTION=
35 33
36 34 # C language section.
37 35 CC=cc
38 36 CFLAGS=
39 37 CPPFLAGS=
40 38 LINT=lint
41 39 LINTFLAGS=
42 40 COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -target $(TARGET_ARCH:-%=%) -c
43 41 LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -target $(TARGET_ARCH:-%=%)
44 42 LINT.c=$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
45 43 .c:
46 44 $(LINK.c) -o $@ $< $(LDLIBS)
47 45 .c.ln:
48 46 $(LINT.c) $(OUTPUT_OPTION) -i $<
49 47 .c.o:
50 48 $(COMPILE.c) $(OUTPUT_OPTION) $<
51 49 .c.a:
52 50 $(COMPILE.c) -o $% $<
53 51 $(AR) $(ARFLAGS) $@ $%
54 52 $(RM) $%
55 53
56 54 # C language section. yacc.
57 55 YACC=yacc
58 56 YFLAGS=
59 57 YACC.y=$(YACC) $(YFLAGS)
60 58 .y:
61 59 $(YACC.y) $<
62 60 $(LINK.c) -o $@ y.tab.c $(LDLIBS)
63 61 $(RM) y.tab.c
64 62 .y.c:
65 63 $(YACC.y) $<
66 64 mv y.tab.c $@
67 65 .y.ln:
68 66 $(YACC.y) $<
69 67 $(LINT.c) -o $@ -i y.tab.c
70 68 $(RM) y.tab.c
71 69 .y.o:
72 70 $(YACC.y) $<
73 71 $(COMPILE.c) -o $@ y.tab.c
74 72 $(RM) y.tab.c
75 73
76 74 # C language section. lex.
77 75 LEX=lex
78 76 LFLAGS=
79 77 LEX.l=$(LEX) $(LFLAGS) -t
80 78 .l:
81 79 $(RM) $*.c
82 80 $(LEX.l) $< > $*.c
83 81 $(LINK.c) -o $@ $*.c -ll $(LDLIBS)
84 82 $(RM) $*.c
85 83 .l.c :
86 84 $(RM) $@
87 85 $(LEX.l) $< > $@
88 86 .l.ln:
89 87 $(RM) $*.c
90 88 $(LEX.l) $< > $*.c
91 89 $(LINT.c) -o $@ -i $*.c
92 90 $(RM) $*.c
93 91 .l.o:
94 92 $(RM) $*.c
95 93 $(LEX.l) $< > $*.c
96 94 $(COMPILE.c) -o $@ $*.c
97 95 $(RM) $*.c
98 96
99 97 # C++ language section.
100 98 CCC=CC
101 99 CCFLAGS=
102 100 COMPILE.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
103 101 LINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
104 102 .cc:
105 103 $(LINK.cc) -o $@ $< $(LDLIBS)
106 104 .cc.o:
107 105 $(COMPILE.cc) $(OUTPUT_OPTION) $<
108 106 .cc.a:
109 107 $(COMPILE.cc) -o $% $<
110 108 $(AR) $(ARFLAGS) $@ $%
111 109 $(RM) $%
112 110
113 111 # FORTRAN section.
114 112 FC=f77
115 113 FFLAGS=
116 114 COMPILE.f=$(FC) $(FFLAGS) $(TARGET_ARCH) -c
117 115 LINK.f=$(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
118 116 COMPILE.F=$(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
119 117 LINK.F=$(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
120 118 .f:
121 119 $(LINK.f) -o $@ $< $(LDLIBS)
122 120 .f.o:
123 121 $(COMPILE.f) $(OUTPUT_OPTION) $<
124 122 .f.a:
125 123 $(COMPILE.f) -o $% $<
126 124 $(AR) $(ARFLAGS) $@ $%
127 125 $(RM) $%
128 126 .F:
129 127 $(LINK.F) -o $@ $< $(LDLIBS)
130 128 .F.o:
131 129 $(COMPILE.F) $(OUTPUT_OPTION) $<
132 130 .F.a:
133 131 $(COMPILE.F) -o $% $<
134 132 $(AR) $(ARFLAGS) $@ $%
135 133 $(RM) $%
136 134
137 135 # FORTRAN section. ratfor.
138 136 RFLAGS=
139 137 COMPILE.r=$(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
140 138 LINK.r=$(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
141 139 .r:
142 140 $(LINK.r) -o $@ $< $(LDLIBS)
143 141 .r.o:
144 142 $(COMPILE.r) $(OUTPUT_OPTION) $<
145 143 .r.a:
146 144 $(COMPILE.r) -o $% $<
147 145 $(AR) $(ARFLAGS) $@ $%
148 146 $(RM) $%
149 147
150 148 # Modula-2 section.
151 149 M2C=m2c
152 150 M2FLAGS=
153 151 MODFLAGS=
154 152 DEFFLAGS=
155 153 COMPILE.def=$(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
156 154 COMPILE.mod=$(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
157 155 .def.sym:
158 156 $(COMPILE.def) -o $@ $<
159 157 .mod:
160 158 $(COMPILE.mod) -o $@ -e $@ $<
161 159 .mod.o:
162 160 $(COMPILE.mod) -o $@ $<
163 161 .mod.a:
164 162 $(COMPILE.mod) -o $% $<
165 163 $(AR) $(ARFLAGS) $@ $%
166 164 $(RM) $%
167 165
168 166 # Pascal section.
169 167 PC=pc
170 168 PFLAGS=
171 169 COMPILE.p=$(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
172 170 LINK.p=$(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
173 171 .p:
174 172 $(LINK.p) -o $@ $< $(LDLIBS)
175 173 .p.o:
176 174 $(COMPILE.p) $(OUTPUT_OPTION) $<
177 175 .p.a:
178 176 $(COMPILE.p) -o $% $<
179 177 $(AR) $(ARFLAGS) $@ $%
180 178 $(RM) $%
181 179
182 180 # Assembly section.
183 181 AS=as
184 182 ASFLAGS=
185 183 COMPILE.s=$(AS) $(ASFLAGS) $(TARGET_MACH)
186 184 COMPILE.S=$(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
187 185 .s.o:
188 186 $(COMPILE.s) -o $@ $<
189 187 .s.a:
190 188 $(COMPILE.s) -o $% $<
191 189 $(AR) $(ARFLAGS) $@ $%
192 190 $(RM) $%
193 191 .S.o:
194 192 $(COMPILE.S) -o $@ $<
195 193 .S.a:
196 194 $(COMPILE.S) -o $% $<
197 195 $(AR) $(ARFLAGS) $@ $%
198 196 $(RM) $%
199 197
200 198 # Shell section.
201 199 .sh:
202 200 $(RM) $@
203 201 cat $< > $@
204 202 chmod +x $@
205 203
206 204 # NeWS section
207 205 CPS=cps
208 206 CPSFLAGS=
209 207 .cps.h:
210 208 $(CPS) $(CPSFLAGS) $*.cps
211 209
212 210 # Miscellaneous section.
213 211 LD=ld
214 212 LDFLAGS=
215 213 LDLIBS=
216 214 MAKE=make
217 215 RM=rm -f
218 216 AR=ar
219 217 ARFLAGS=rv
220 218 GET=/usr/sccs/get
221 219 GFLAGS=
222 220
223 221 markfile.o: markfile
224 222 echo "static char _sccsid[] = \"`grep @'(#)' markfile`\";" > markfile.c
225 223 cc -c markfile.c
226 224 $(RM) markfile.c
227 225
228 226 SCCSFLAGS=
229 227 SCCSGETFLAGS=-s
230 228 .SCCS_GET:
231 229 sccs $(SCCSFLAGS) get $(SCCSGETFLAGS) $@ -G$@
↓ open down ↓ |
196 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX