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