Print this page
include build stamp in unix
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/Makefile.targ
+++ new/usr/src/uts/Makefile.targ
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
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 #
22 22 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # This Makefiles contains the common targets and definitions for
25 25 # all kernels. It is to be included in the Makefiles for specific
26 26 # implementation architectures and processor architecture dependent
27 27 # modules: i.e.: all driving kernel Makefiles.
28 28 #
29 29
30 30 #
31 31 # Default rule for building the lint library directory:
32 32 #
33 33 $(LINT_LIB_DIR):
34 34 -@mkdir -p $@ 2> /dev/null
35 35
36 36 #
37 37 # All C objects depend on inline files. However, cc(1) doesn't generate
38 38 # the correct dependency info. Also, these Makefiles don't contain a
39 39 # separate list of C-derived object files (but it is light weight to
40 40 # let the assembler files think they depend upon this when they don't).
41 41 # Fortunately, the inline files won't change very often. So, for now,
42 42 # all objects depend on the inline files. Remove this when the inliner
43 43 # is fixed to drop correct dependency information.
44 44 #
45 45 $(OBJECTS): $(INLINES)
46 46
47 47 #
48 48 # Partially link .o files to generate the kmod. The fake dependency
49 49 # on modstubs simplifies things...
50 50 # ELFSIGN_MOD is defined in the individual KCF plug-in modules Makefiles,
51 51 # and will sign the ELF objects using elfsign(1).
52 52 #
53 53 $(BINARY): $(OBJECTS)
54 54 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
55 55 $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
56 56 $(POST_PROCESS)
57 57 $(ELFSIGN_MOD)
58 58
59 59 #
60 60 # This target checks each kmod for undefined entry points. It does not
61 61 # modify the kmod in any way.
62 62 #
63 63 $(MODULE).check: FRC
64 64 @BUILD_TYPE=DBG32 $(MAKE) $(MODULE).check.targ
65 65
66 66 $(MODULE).check.targ: $(BINARY) $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
67 67 $(LD) -o /dev/null $(OBJECTS) $(EXTRA_CHECK_OBJS) $(UNIX_O) $(MODSTUBS_O) $(GENLIB)
68 68
69 69 #
70 70 # Module lint library construction targets.
71 71 #
72 72 MOD_LINT_LIB = $(LINT_LIB_DIR)/llib-l$(LINT_MODULE).ln
73 73
74 74 $(MOD_LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
75 75 @-$(ECHO) "\n$(OBJS_DIR)/$(MODULE): (library construction):"
76 76 @($(LINT) -o $(LINT_MODULE)-$(OBJS_DIR) \
77 77 $(LINTFLAGS) $(LINTS) $(LTAIL))
78 78 @$(MV) llib-l$(LINT_MODULE)-$(OBJS_DIR).ln $@
79 79
80 80 $(LINT_MODULE).lint: $(MOD_LINT_LIB) $(LINT_LIB) $(GEN_LINT_LIB)
81 81 @-$(ECHO) "\n$(OBJS_DIR)/$(LINT_MODULE): global crosschecks:"
82 82 @($(LINT) $(LINTFLAGS) $(MOD_LINT_LIB) \
83 83 $(LINT_LIB) $(GEN_LINT_LIB) $(LTAIL))
84 84
85 85 #
86 86 # Since assym.h is a derived file, the dependency must be explicit for
87 87 # all files including this file. (This is only actually required in the
88 88 # instance when the .nse_depinfo file does not exist.) It may seem that
89 89 # the lint targets should also have a similar dependency, but they don't
90 90 # since only C headers are included when #defined(lint) is true. The
91 91 # actual lists are defined in */Makefile.files.
92 92 #
93 93 $(ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/assym.h
94 94
95 95 #
96 96 # Everybody need to know how to create a modstubs.o built with the
97 97 # appropriate flags and located in the appropriate location.
98 98 #
99 99 $(MODSTUBS_O): $(MODSTUBS)
100 100 $(COMPILE.s) -o $@ $(MODSTUBS)
101 101
102 102 $(LINTS_DIR)/modstubs.ln: $(MODSTUBS)
103 103 @($(LHEAD) $(LINT.s) $(MODSTUBS) $(LTAIL))
104 104
105 105 #
106 106 # Build the source file which contains the kernel's utsname,
107 107 # with release, version and machine set as follows:
108 108 #
109 109 # release: contents of $(RELEASE) (Spaces replaced by '_')
110 110 # version: contents of $(PATCHID) (Spaces replaced by '_')
111 111 # machine: contents of $(UNAME_M)
112 112 #
113 113 # Build environment information is only contained in the comment section.
114 114 #
115 115 # The version string, normally the variable VERSION, is set to display
116 116 # environmental information temporarily while in development because
↓ open down ↓ |
116 lines elided |
↑ open up ↑ |
117 117 # it provides a little more useful information.
118 118 #
119 119 VERSION_STRING = ($(ECHO) $$LOGNAME [\`basename $$CODEMGR_WS\`] \\\c; date +%D)
120 120 $(INTERNAL_RELEASE_BUILD)VERSION_STRING = $(ECHO) $(PATCHID)
121 121
122 122 $(OBJS_DIR)/vers.o: $(OBJECTS)
123 123 $(COMPILE.c) -DUTS_RELEASE=\"`$(ECHO) $(RELEASE) | sed -e 's/ /_/g'`\" \
124 124 -DUTS_VERSION=\"`$(VERSION_STRING) | sed -e 's/ /_/g'`\" \
125 125 -DUTS_PLATFORM=\"$(UNAME_M)\" -o $@ $(SRC)/uts/common/os/vers.c
126 126 $(CTFCONVERT_O)
127 + $(PROCESS_BUILDSTAMP) $@
127 128 $(POST_PROCESS_O)
128 129
129 130 $(LINTS_DIR)/vers.ln: $(SRC)/uts/common/os/vers.c
130 131 @($(LHEAD) $(LINT.c) -DUTS_RELEASE=\"\" -DUTS_VERSION=\"\" \
131 132 -DUTS_PLATFORM=\"\" $(SRC)/uts/common/os/vers.c $(LTAIL))
132 133
133 134 #
134 135 # Installation targets and rules:
135 136 #
136 137 $(ROOT_MOD_DIR) $(USR_MOD_DIR):
137 138 -$(INS.dir)
138 139
139 140 $(ROOT_MOD_DIRS_32): $(ROOT_MOD_DIR)
140 141 -$(INS.dir)
141 142
142 143 $(USR_MOD_DIRS_32): $(USR_MOD_DIR)
143 144 -$(INS.dir)
144 145
145 146 $(ROOT_MOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_MOD_DIR) FRC
146 147 $(INS.file)
147 148
148 149 $(ROOT_CPU_DIR)/%: $(OBJS_DIR)/% $(ROOT_CPU_DIR) FRC
149 150 $(INS.file)
150 151
151 152 $(ROOT_DRV_DIR)/%: $(OBJS_DIR)/% $(ROOT_DRV_DIR) FRC
152 153 $(INS.file)
153 154
154 155 $(ROOT_DTRACE_DIR)/%: $(OBJS_DIR)/% $(ROOT_DTRACE_DIR) FRC
155 156 $(INS.file)
156 157
157 158 $(ROOT_EXEC_DIR)/%: $(OBJS_DIR)/% $(ROOT_EXEC_DIR) FRC
158 159 $(INS.file)
159 160
160 161 $(ROOT_FS_DIR)/%: $(OBJS_DIR)/% $(ROOT_FS_DIR) FRC
161 162 $(INS.file)
162 163
163 164 $(ROOT_SCHED_DIR)/%: $(OBJS_DIR)/% $(ROOT_SCHED_DIR) FRC
164 165 $(INS.file)
165 166
166 167 $(ROOT_SOCK_DIR)/%: $(OBJS_DIR)/% $(ROOT_SOCK_DIR) FRC
167 168 $(INS.file)
168 169
169 170 $(ROOT_STRMOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_STRMOD_DIR) FRC
170 171 $(INS.file)
171 172
172 173 $(ROOT_IPP_DIR)/%: $(OBJS_DIR)/% $(ROOT_IPP_DIR) FRC
173 174 $(INS.file)
174 175
175 176 $(ROOT_SYS_DIR)/%: $(OBJS_DIR)/% $(ROOT_SYS_DIR) FRC
176 177 $(INS.file)
177 178
178 179 $(ROOT_MISC_DIR)/%: $(OBJS_DIR)/% $(ROOT_MISC_DIR) FRC
179 180 $(INS.file)
180 181
181 182 $(ROOT_DACF_DIR)/%: $(OBJS_DIR)/% $(ROOT_DACF_DIR) FRC
182 183 $(INS.file)
183 184
184 185 $(ROOT_BRAND_DIR)/%: $(OBJS_DIR)/% $(ROOT_BRAND_DIR) FRC
185 186 $(INS.file)
186 187
187 188 $(ROOT_CRYPTO_DIR)/%: $(OBJS_DIR)/% $(ROOT_CRYPTO_DIR) FRC
188 189 $(INS.file)
189 190
190 191 $(ROOT_KGSS_DIR)/%: $(OBJS_DIR)/% $(ROOT_KGSS_DIR) FRC
191 192 $(INS.file)
192 193
193 194 $(ROOT_SCSI_VHCI_DIR)/%: $(OBJS_DIR)/% $(ROOT_SCSI_VHCI_DIR) FRC
194 195 $(INS.file)
195 196
196 197 $(ROOT_PMCS_FW_DIR)/%: $(OBJS_DIR)/% $(ROOT_PMCS_FW_DIR) FRC
197 198 $(INS.file)
198 199
199 200 $(ROOT_QLC_FW_DIR)/%: $(OBJS_DIR)/% $(ROOT_QLC_FW_DIR) FRC
200 201 $(INS.file)
201 202
202 203 $(ROOT_EMLXS_FW_DIR)/%: $(OBJS_DIR)/% $(ROOT_EMLXS_FW_DIR) FRC
203 204 $(INS.file)
204 205
205 206 $(ROOT_MACH_DIR)/%: $(OBJS_DIR)/% $(ROOT_MACH_DIR) FRC
206 207 $(INS.file)
207 208
208 209 $(ROOT_FONT_DIR)/%: $(OBJS_DIR)/% $(ROOT_MOD_DIR) $(ROOT_FONT_DIR) FRC
209 210 $(INS.file)
210 211
211 212 $(ROOT_MAC_DIR)/%: $(OBJS_DIR)/% $(ROOT_MOD_DIR) $(ROOT_MAC_DIR) FRC
212 213 $(INS.file)
213 214
214 215 $(USR_DRV_DIR)/%: $(OBJS_DIR)/% $(USR_DRV_DIR) FRC
215 216 $(INS.file)
216 217
217 218 $(USR_EXEC_DIR)/%: $(OBJS_DIR)/% $(USR_EXEC_DIR) FRC
218 219 $(INS.file)
219 220
220 221 $(USR_FS_DIR)/%: $(OBJS_DIR)/% $(USR_FS_DIR) FRC
221 222 $(INS.file)
222 223
223 224 $(USR_SCHED_DIR)/%: $(OBJS_DIR)/% $(USR_SCHED_DIR) FRC
224 225 $(INS.file)
225 226
226 227 $(USR_SOCK_DIR)/%: $(OBJS_DIR)/% $(USR_SOCK_DIR) FRC
227 228 $(INS.file)
228 229
229 230 $(USR_STRMOD_DIR)/%: $(OBJS_DIR)/% $(USR_STRMOD_DIR) FRC
230 231 $(INS.file)
231 232
232 233 $(USR_SYS_DIR)/%: $(OBJS_DIR)/% $(USR_SYS_DIR) FRC
233 234 $(INS.file)
234 235
235 236 $(USR_MISC_DIR)/%: $(OBJS_DIR)/% $(USR_MISC_DIR) FRC
236 237 $(INS.file)
237 238
238 239 $(USR_DACF_DIR)/%: $(OBJS_DIR)/% $(USR_DACF_DIR) FRC
239 240 $(INS.file)
240 241
241 242 $(USR_PCBE_DIR)/%: $(OBJS_DIR)/% $(USR_PCBE_DIR) FRC
242 243 $(INS.file)
243 244
244 245 $(USR_DTRACE_DIR)/%: $(OBJS_DIR)/% $(USR_DTRACE_DIR) FRC
245 246 $(INS.file)
246 247
247 248 $(USR_BRAND_DIR)/%: $(OBJS_DIR)/% $(USR_BRAND_DIR) FRC
248 249 $(INS.file)
249 250
250 251 $(ROOT_KICONV_DIR)/%: $(OBJS_DIR)/% $(ROOT_KICONV_DIR) FRC
251 252 $(INS.file)
252 253
253 254 include $(SRC)/Makefile.psm.targ
254 255
255 256 #
256 257 # Target for 64b modules
257 258 #
258 259 $(ROOT_KERN_DIR_64):
259 260 -$(INS.dir)
260 261
261 262 $(ROOT_KERN_DIR_64)/%: $(OBJS_DIR)/% $(ROOT_KERN_DIR_64) FRC
262 263 $(INS.file)
263 264
264 265 %/$(SUBDIR64): %
265 266 -$(INS.dir)
266 267
267 268 #
268 269 # Targets for '.conf' file installation.
269 270 #
270 271 $(ROOT_CONFFILE): $(SRC_CONFFILE) $(ROOT_CONFFILE:%/$(CONFFILE)=%)
271 272 $(INS.conffile)
272 273
273 274 #
274 275 # Targets for creating links between common platforms. ROOT_PLAT_LINKS
275 276 # are are the /platform level while ROOT_PLAT_LINKS_2 are one level
276 277 # down (/platform/`uname -i`/{lib|sbin|kernel}.
277 278 #
278 279 $(ROOT_PLAT_LINKS):
279 280 $(INS.slink1)
280 281
281 282 $(ROOT_PLAT_LINKS_2):
282 283 $(INS.slink2)
283 284
284 285 $(USR_PLAT_LINKS):
285 286 $(INS.slink1)
286 287
287 288 $(USR_PLAT_LINKS_2):
288 289 $(INS.slink2)
289 290
290 291 #
291 292 # multiple builds support
292 293 #
293 294 def $(DEF_DEPS) := TARGET = def
294 295 all $(ALL_DEPS) := TARGET = all
295 296 clean $(CLEAN_DEPS) := TARGET = clean
296 297 clobber $(CLOBBER_DEPS) := TARGET = clobber
297 298 lint $(LINT_DEPS) := TARGET = lint
298 299 modlintlib $(MODLINTLIB_DEPS) := TARGET = modlintlib
299 300 modlist $(MODLIST_DEPS) := TARGET = modlist
300 301 modlist $(MODLIST_DEPS) := NO_STATE= -K $$MODSTATE$$$$
301 302 clean.lint $(CLEAN_LINT_DEPS) := TARGET = clean.lint
302 303 install $(INSTALL_DEPS) := TARGET = install
303 304 symcheck $(SYM_DEPS) := TARGET = symcheck
304 305
305 306 ALL_TARGS = def all clean clobber lint modlintlib \
306 307 clean.lint lintlib install symcheck
307 308
308 309 ALL_OBJ32 = $(ALL_TARGS:%=%.obj32)
309 310
310 311 $(ALL_OBJ32): FRC
311 312 @BUILD_TYPE=OBJ32 VERSION='$(VERSION)' $(MAKE) $(NO_STATE) $(TARGET).targ
312 313
313 314 ALL_DEBUG32 = $(ALL_TARGS:%=%.debug32)
314 315
315 316 $(ALL_DEBUG32): FRC
316 317 @BUILD_TYPE=DBG32 VERSION='$(VERSION)' $(MAKE) $(NO_STATE) $(TARGET).targ
317 318
318 319 ALL_OBJ64 = $(ALL_TARGS:%=%.obj64)
319 320
320 321 $(ALL_OBJ64): FRC
321 322 @BUILD_TYPE=OBJ64 VERSION='$(VERSION)' $(MAKE) $(NO_STATE) $(TARGET).targ
322 323
323 324 ALL_DEBUG64 = $(ALL_TARGS:%=%.debug64)
324 325
325 326 $(ALL_DEBUG64): FRC
326 327 @BUILD_TYPE=DBG64 VERSION='$(VERSION)' $(MAKE) $(NO_STATE) $(TARGET).targ
327 328
328 329 #
329 330 # Currently only the IP module needs symbol checking on obj64.
330 331 # Other modules have the same global-objs nm output for debug64 and obj64.
331 332 #
332 333 $(SISCHECK_DEPS): $(DEF_DEPS)
333 334 @TARG=`$(ECHO) $@ | $(CUT) -d'.' -f2`; \
334 335 MODSYMS=$(MODULE).symbols.$$TARG; \
335 336 if [ -f "$(MODULE).global-objs.$$TARG" ]; then \
336 337 $(GREP) -v '#' $(MODULE).global-objs.$$TARG |$(GREP) . | \
337 338 $(SORT) -u > $$MODSYMS.tmp; \
338 339 $(NM) $$TARG/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \
339 340 $(CUT) -d'|' -f8 |$(GREP) -v '^___const_' | \
340 341 $(GREP) -v '\.[0-9]*$$' |$(SORT) -u \
341 342 > $$MODSYMS.tmp.new; \
342 343 $(DIFF) $$MODSYMS.tmp $$MODSYMS.tmp.new > $$MODSYMS.diff || \
343 344 ($(ECHO) "warning: $(MODULE) symbol checking:" \
344 345 "global variable(s) introduced and/or removed."; \
345 346 $(CAT) $$MODSYMS.diff; exit 1) \
346 347 fi
347 348
348 349 $(SISCLEAN_DEPS):
349 350 -TARG=`$(ECHO) $@ | $(CUT) -d'.' -f2`; \
350 351 MODSYMS=$(MODULE).symbols.$$TARG; \
351 352 $(RM) $$MODSYMS.tmp $$MODSYMS.tmp.new $$MODSYMS.diff Nothing_to_remove
352 353
353 354
354 355 $(OBJS_DIR):
355 356 -@mkdir -p $@ 2> /dev/null
356 357
357 358 def.targ: $(OBJS_DIR) $(ALL_TARGET)
358 359
359 360 all.targ: $(OBJS_DIR) $(ALL_TARGET)
360 361
361 362 lint.targ: $(OBJS_DIR) $(LINT_TARGET)
362 363
363 364 modlintlib.targ: $(OBJS_DIR) $(MOD_LINT_LIB)
364 365
365 366 install.targ: $(OBJS_DIR) $(INSTALL_TARGET)
366 367
367 368 #
368 369 # Support for Install.sh.
369 370 #
370 371
371 372 modlist: $(MODLIST_DEPS)
372 373
373 374 # paths relative to $(ROOT).
374 375 RELMODULE = $(ROOTMODULE:$(ROOT)/%=%)
375 376 RELCONF = $(ROOT_CONFFILE:$(ROOT)/%=%)
376 377 RELLINK = $(ROOTLINK:$(ROOT)/%=%)
377 378 RELUNIX = $(UNIX32_LINK:$(ROOT)/%=%)
378 379 RELSOFTLINKS = $(ROOTSOFTLINKS:$(ROOT)/%=%)
379 380
380 381 MODSRC:sh= pwd
381 382
382 383 #
383 384 # Generate module information for Install.sh, i.e., specify what files
384 385 # Install.sh should include. Each line looks like
385 386 # <tag> <srcdir> <arg1> <arg2> ...
386 387 # where <tag> specifies the type of file, <srcdir> gives the source
387 388 # path (useful if there is an error), and <argN> is one or more
388 389 # additional bits of information that Install.sh needs (e.g., source
389 390 # directory, install directory, filtering tags). See Install.sh for
390 391 # details on the arguments for each tag type, especially the functions
391 392 # copymod, filtmod, and filtimpl.
392 393 #
393 394 # Changes to this target may require corresponding changes to
394 395 # Install.sh.
395 396 #
396 397 # Don't issue a MOD entry if it's not in the install list.
397 398 #
398 399
399 400 $(MODLIST_DEPS): FRC
400 401 @case $@ in \
401 402 *32) \
402 403 class=32; \
403 404 [ -n "$(RELMODULE)" ] && relmodule=`dirname $(RELMODULE)`;; \
404 405 *64) \
405 406 class=64; \
406 407 [ -n "$(RELMODULE)" ] && \
407 408 relmodule=`dirname $(RELMODULE)`/$(SUBDIR64);; \
408 409 esac; \
409 410 if [ -z "$(THISIMPL)" ]; then \
410 411 impl=all; \
411 412 else \
412 413 impl=$(THISIMPL); \
413 414 fi; \
414 415 if [ -n "$(ROOTMODULE)" -a -n "$(INSTALL_TARGET)" ]; then \
415 416 if [ -z "$(MODULE)" ]; then \
416 417 module=`basename $(ROOTMODULE)`; \
417 418 else \
418 419 module=$(MODULE); \
419 420 fi; \
420 421 tinstall="$(INSTALL_TARGET)"; \
421 422 for t in $$tinstall; do \
422 423 if [ "$(ROOTMODULE)" = $$t ]; then \
423 424 echo MOD $(MODSRC) $$module $$relmodule \
424 425 $$class $$impl; \
425 426 break; \
426 427 fi \
427 428 done \
428 429 fi; \
429 430 if [ -n "$(CONF_SRCDIR)" ]; then \
430 431 tinstall="$(INSTALL_TARGET)"; \
431 432 for t in $$tinstall; do \
432 433 if [ $(ROOT_CONFFILE) = $$t ]; then \
433 434 echo CONF $(MODSRC) $(RELCONF) \
434 435 $(MODSRC)/$(CONF_SRCDIR) $$impl $$module; \
435 436 break; \
436 437 fi \
437 438 done \
438 439 fi; \
439 440 if [ -n "$(ROOTLINK)" ]; then \
440 441 rellinks="$(RELLINK)"; \
441 442 for r in $$rellinks; do \
442 443 if [ $$class = 32 ]; then \
443 444 linkdir=`dirname $$r`; \
444 445 else \
445 446 linkdir=`dirname $$r`/$(SUBDIR64); \
446 447 fi; \
447 448 echo LINK $(MODSRC) $$relmodule $$module \
448 449 $$linkdir `basename $$r` $$impl; \
449 450 done \
450 451 fi; \
451 452 if [ -n "$(UNIX32_LINK)" ]; then \
452 453 echo SYMLINK $(MODSRC) $(SUBDIR64)/$(UNIX) \
453 454 `dirname $(RELUNIX)` unix $$impl $$module; \
454 455 fi; \
455 456 trelsoftlinks="$(RELSOFTLINKS)"; \
456 457 for t in $$trelsoftlinks; do \
457 458 if [ $$class = 32 ]; then \
458 459 linkdir=`dirname $$t`; \
459 460 else \
460 461 linkdir=`dirname $$t`/$(SUBDIR64); \
461 462 fi; \
462 463 linkname=`basename $$t`; \
463 464 echo SYMLINK $(MODSRC) $(MODULE) $$linkdir $$linkname \
464 465 $$impl $$module; \
465 466 done
466 467
467 468 #
468 469 # Cleanliness is next to ...
469 470 #
470 471 clean.targ:
471 472 -$(RM) $(CLEANFILES) Nothing_to_remove
472 473
473 474 clobber.targ:
474 475 -$(RM) $(CLOBBERFILES) Nothing_to_remove
475 476
476 477 clean.lint.targ:
477 478 -$(RM) $(CLEANLINTFILES) Nothing_to_remove
478 479
479 480 #
480 481 # Create fake lintlibs in the 64b dirs so
481 482 # global linting works
482 483 #
483 484 lint64:
484 485 @$(ECHO) $(MODULE) fake lints
485 486 @for dir in $(LINT64_DIRS); do \
486 487 if [ ! -d $$dir ]; then mkdir $$dir; fi \
487 488 done
488 489 @for file in $(LINT64_FILES); do \
489 490 if [ ! -f $$file ]; then touch $$file; fi \
490 491 done
491 492
492 493 #
493 494 # In some places we also need to create fake lintlibs for 32b
494 495 # dirs so global linting works
495 496 #
496 497 lint32:
497 498 @$(ECHO) $(MODULE) fake lints
498 499 @for dir in $(LINT32_DIRS); do \
499 500 if [ ! -d $$dir ]; then mkdir $$dir; fi \
500 501 done
501 502 @for file in $(LINT32_FILES); do \
502 503 if [ ! -f $$file ]; then touch $$file; fi \
503 504 done
504 505
505 506 FRC:
↓ open down ↓ |
369 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX