Print this page
6662 uts should only build the variant requested
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/genunix/Makefile
+++ new/usr/src/uts/intel/genunix/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 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # This makefile drives the production of the generic
29 29 # unix kernel module.
30 30 #
31 31 # x86 implementation architecture dependent
32 32 #
33 33
34 34 #
35 35 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 36 #
37 37 UTSBASE = ../..
38 38
39 39 #
40 40 # Define the module and object file sets.
41 41 #
42 42 MODULE = genunix
43 43 GENUNIX = $(OBJS_DIR)/$(MODULE)
44 44
45 45 OBJECTS = $(GENUNIX_OBJS:%=$(OBJS_DIR)/%) \
46 46 $(NOT_YET_KMODS:%=$(OBJS_DIR)/%)
47 47
48 48 LINTS = $(GENUNIX_OBJS:%.o=$(LINTS_DIR)/%.ln) \
49 49 $(NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln)
50 50
51 51 ROOTMODULE = $(ROOT_KERN_DIR)/$(MODULE)
52 52
53 53 LIBGEN = $(OBJS_DIR)/libgenunix.so
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
54 54 LIBSTUBS = $(GENSTUBS_OBJS:%=$(OBJS_DIR)/%)
55 55
56 56 #
57 57 # Include common rules.
58 58 #
59 59 include $(UTSBASE)/intel/Makefile.intel
60 60
61 61 #
62 62 # Define targets
63 63 #
64 -ALL_TARGET = $(LIBGEN)
64 +ALL_TARGET = $(LIBGEN) $(GENUNIX)
65 65 LINT_TARGET = $(MODULE).lint
66 -INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
66 +INSTALL_TARGET = $(LIBGEN) $(GENUNIX) $(ROOTMODULE)
67 67
68 68 #
69 69 # Overrides
70 70 #
71 71 CLOBBERFILES += $(GENUNIX)
72 72 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
73 73 BINARY =
74 74
75 75 #
76 76 # Non-patch genunix builds merge a version of the ip module called ipctf. This
77 77 # is to ensure that the common network-related types are included in genunix and
78 78 # can thus be uniquified out of other modules. We don't want to do this for
79 79 # patch builds, since we can't guarantee that ip and genunix will be in the same
80 80 # patch.
81 81 #
82 82 IPCTF_TARGET = $(IPCTF)
83 83 $(PATCH_BUILD)IPCTF_TARGET =
84 84
85 85 CPPFLAGS += -I$(SRC)/common
86 86 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
87 87
88 88 CPPFLAGS += -I$(UTSBASE)/i86pc
89 89
90 90 #
91 91 # For now, disable these lint checks; maintainers should endeavor
92 92 # to investigate and remove these for maximum lint coverage.
93 93 # Please do not carry these forward to new Makefiles.
94 94 #
95 95 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
96 96 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
97 97 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
98 98 LINTTAGS += -erroff=E_STATIC_UNUSED
99 99 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
100 100 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
101 101
102 102 CERRWARN += -_gcc=-Wno-unused-label
103 103 CERRWARN += -_gcc=-Wno-unused-variable
104 104 CERRWARN += -_gcc=-Wno-unused-value
105 105 CERRWARN += -_gcc=-Wno-unused-function
106 106 CERRWARN += -_gcc=-Wno-parentheses
107 107 CERRWARN += -_gcc=-Wno-switch
108 108 CERRWARN += -_gcc=-Wno-type-limits
109 109 CERRWARN += -_gcc=-Wno-uninitialized
110 110 CERRWARN += -_gcc=-Wno-clobbered
111 111 CERRWARN += -_gcc=-Wno-empty-body
112 112
113 113 #
114 114 # Ensure that lint sees 'struct cpu' containing a fully declared
115 115 # embedded 'struct machcpu'
116 116 #
117 117 LINTFLAGS += -D_MACHDEP -I../../i86pc
118 118
119 119 #
120 120 # Default build targets.
121 121 #
122 122 .KEEP_STATE:
123 123
124 124 def: $(DEF_DEPS)
125 125
126 126 all: $(ALL_DEPS)
127 127
128 128 clean: $(CLEAN_DEPS)
129 129
130 130 clobber: $(CLOBBER_DEPS)
131 131
132 132 lint: $(LINT_DEPS)
133 133
134 134 modlintlib: $(MODLINTLIB_DEPS)
135 135
136 136 clean.lint: $(CLEAN_LINT_DEPS)
137 137
138 138 install: $(INSTALL_DEPS)
139 139
140 140 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
141 141 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
142 142
143 143 $(IPCTF_TARGET) ipctf_target: FRC
144 144 @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR)
145 145 @pwd
146 146
147 147 $(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
148 148 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
149 149 $(CTFMERGE_GENUNIX_MERGE)
150 150 $(POST_PROCESS)
151 151
152 152 #
153 153 # Include common targets.
154 154 #
155 155 include $(UTSBASE)/intel/Makefile.targ
156 156
157 157 #
158 158 # Software workarounds for hardware "features".
159 159 #
160 160 include $(UTSBASE)/i86pc/Makefile.workarounds
161 161
162 162 ALL_DEFS += $(WORKAROUND_DEFS)
163 163
164 164 #
165 165 # Override.
166 166 #
167 167 $(MODULE).lint := GEN_LINT_LIB =
↓ open down ↓ |
91 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX