Print this page
first pass
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sparc/Makefile
+++ new/usr/src/uts/sparc/Makefile
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 #ident "%Z%%M% %I% %E% SMI"
23 23 #
24 24 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # uts/sparc/Makefile
28 28 #
29 29 # This makefile drives the production of all implementation architecture
30 30 # independent modules for the SPARC processor. (For those unsure, this
31 31 # means the module will run on all SPARC processor based machines
32 32 # running SunOS.)
33 33
34 34 UTSBASE = ..
35 35
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
36 36 include Makefile.sparc
37 37
38 38 LINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
39 39 LINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
40 40 LINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
41 41 LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
42 42 $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
43 43
44 44 $(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
45 45
46 -# EXPORT DELETE START
47 46 $(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
48 47 LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
49 48 $(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
50 49
51 50 DRV_KMODS += dprov
52 51
53 -# EXPORT DELETE END
54 -
55 52 def := TARGET= def
56 53 all := TARGET= all
57 54 install := TARGET= install
58 55 clean := TARGET= clean
59 56 clobber := TARGET= clobber
60 57 lint := TARGET= lint
61 58 modlintlib := TARGET= modlintlib
62 59 modlist := TARGET= modlist
63 60 modlist := NO_STATE= -K $$MODSTATE$$$$
64 61 clean.lint := TARGET= clean.lint
65 62 check := TARGET= check
66 63 install_h := TARGET= install_h
67 64
68 65 .KEEP_STATE:
69 66
70 67 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
71 68 $(CLOSED_XMODS) config $(LINT_DEPS)
72 69
73 70 def all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
74 71 $(XMODS) $(CLOSED_XMODS) config
75 72
76 73 modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
77 74 $(XMODS) $(CLOSED_XMODS)
78 75
79 76 $(KMODS) config: FRC
80 77 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
81 78
82 79 $(CLOSED_KMODS): FRC
83 80 cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
84 81
85 82 $(XMODS): FRC
86 83 @if [ -f $@/Makefile ]; then \
87 84 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
88 85 else \
89 86 true; \
90 87 fi
91 88
92 89 $(SVVS) $(CLOSED_XMODS): FRC
93 90 @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
94 91 cd $(CLOSED)/uts/sparc/$@; pwd; \
95 92 $(MAKE) $(NO_STATE) $(TARGET); \
96 93 else \
97 94 true; \
98 95 fi
99 96
100 97 install_h check: FRC
101 98 @cd asm; pwd; $(MAKE) $(TARGET)
102 99 @cd sys; pwd; $(MAKE) $(TARGET)
103 100 @cd v7/sys; pwd; $(MAKE) $(TARGET)
104 101 @cd v9/sys; pwd; $(MAKE) $(TARGET)
105 102
106 103 #
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
107 104 # Full kernel lint target.
108 105 #
109 106 LINT_TARGET = globallint
110 107
111 108 globallint:
112 109 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
113 110 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
114 111
115 112 lint: modlintlib .WAIT $(LINT_DEPS)
116 113
117 -# EXPORT DELETE START
118 -
119 -EXPORT_SRC:
120 - $(RM) Makefile+
121 - sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
122 - < Makefile > Makefile+
123 - $(MV) Makefile+ Makefile
124 - $(CHMOD) 444 Makefile
125 -
126 -# EXPORT DELETE END
127 -
128 114 include ../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX