1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # This makefile drives the production of unix (and unix.o).
27 #
28 # i86pc implementation architecture dependent
29 #
30
31 #
32 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 #
34 UTSBASE = ../..
35
36 #
37 # Define the module and object file sets.
38 #
39 UNIX = unix
40 DBOOT = dboot
41
42 OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
43 $(CORE_OBJS:%=$(OBJS_DIR)/%) \
44 $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
45 $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
46
47 LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
48 $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
49 $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \
145 # Please do not carry these forward to new Makefiles.
146 #
147 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
148 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
149 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
150 LINTTAGS += -erroff=E_STATIC_UNUSED
151 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
152 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
153
154 CERRWARN += -_gcc=-Wno-parentheses
155 CERRWARN += -_gcc=-Wno-uninitialized
156 CERRWARN += -_gcc=-Wno-char-subscripts
157 CERRWARN += -_gcc=-Wno-unused-variable
158 CERRWARN += -_gcc=-Wno-unused-function
159 CERRWARN += -_gcc=-Wno-unused-label
160 CERRWARN += -_gcc=-Wno-type-limits
161 CERRWARN += -_gcc=-Wno-clobbered
162 CERRWARN += -_gcc=-Wno-empty-body
163 CERRWARN += -_gcc=-Wno-unused-value
164
165 # Ensure that lint sees 'struct cpu' containing a fully declared
166 # embedded 'struct machcpu'
167 #
168 LINTFLAGS += -D_MACHDEP -I../../i86pc
169
170 #
171 # Default build targets.
172 #
173 .KEEP_STATE:
174
175 def: $(DEF_DEPS)
176
177 all: $(ALL_DEPS)
178
179 clean: $(CLEAN_DEPS)
180
181 clobber: $(CLOBBER_DEPS)
182
183 lint: $(LINT_DEPS)
184
|
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24 # Copyright (c) 2018, Joyent, Inc.
25
26 #
27 # Path to the base of the uts directory tree (usually /usr/src/uts).
28 #
29 UTSBASE = ../..
30
31 #
32 # Define the module and object file sets.
33 #
34 UNIX = unix
35 DBOOT = dboot
36
37 OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
38 $(CORE_OBJS:%=$(OBJS_DIR)/%) \
39 $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
40 $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
41
42 LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
43 $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
44 $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \
140 # Please do not carry these forward to new Makefiles.
141 #
142 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
143 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
144 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
145 LINTTAGS += -erroff=E_STATIC_UNUSED
146 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
147 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
148
149 CERRWARN += -_gcc=-Wno-parentheses
150 CERRWARN += -_gcc=-Wno-uninitialized
151 CERRWARN += -_gcc=-Wno-char-subscripts
152 CERRWARN += -_gcc=-Wno-unused-variable
153 CERRWARN += -_gcc=-Wno-unused-function
154 CERRWARN += -_gcc=-Wno-unused-label
155 CERRWARN += -_gcc=-Wno-type-limits
156 CERRWARN += -_gcc=-Wno-clobbered
157 CERRWARN += -_gcc=-Wno-empty-body
158 CERRWARN += -_gcc=-Wno-unused-value
159
160 # false positives
161 SMOFF += index_overflow
162
163 # needs work
164 SMOFF += all_func_returns,deref_check,signed
165
166 $(OBJS_DIR)/fmsmb.o := SMOFF += indenting
167 $(OBJS_DIR)/zutil.o := SMOFF += indenting
168 $(OBJS_DIR)/bootrd_cpio.o := SMOFF += allocating_enough_data
169
170 # Ensure that lint sees 'struct cpu' containing a fully declared
171 # embedded 'struct machcpu'
172 #
173 LINTFLAGS += -D_MACHDEP -I../../i86pc
174
175 #
176 # Default build targets.
177 #
178 .KEEP_STATE:
179
180 def: $(DEF_DEPS)
181
182 all: $(ALL_DEPS)
183
184 clean: $(CLEAN_DEPS)
185
186 clobber: $(CLOBBER_DEPS)
187
188 lint: $(LINT_DEPS)
189
|