xref: /onnv-gate/usr/src/uts/sun4u/kb/Makefile (revision 3066:2a2af34f0642)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*3066Sjg# Common Development and Distribution License (the "License").
6*3066Sjg# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
220Sstevel@tonic-gate# uts/sun4u/kb/Makefile
23*3066Sjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
270Sstevel@tonic-gate#
280Sstevel@tonic-gate#	This makefile drives the production of the kb streams kernel
290Sstevel@tonic-gate#	module.
300Sstevel@tonic-gate#
310Sstevel@tonic-gate#	sun4u implementation architecture dependent
320Sstevel@tonic-gate#
330Sstevel@tonic-gate
340Sstevel@tonic-gate#
350Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
360Sstevel@tonic-gate#
370Sstevel@tonic-gateUTSBASE	= ../..
380Sstevel@tonic-gate
390Sstevel@tonic-gate#
400Sstevel@tonic-gate#	Define the module and object file sets.
410Sstevel@tonic-gate#
420Sstevel@tonic-gateMODULE		= kb
430Sstevel@tonic-gateOBJECTS		= $(KB_OBJS:%=$(OBJS_DIR)/%)
440Sstevel@tonic-gateLINTS		= $(KB_OBJS:%.o=$(LINTS_DIR)/%.ln)
450Sstevel@tonic-gateROOTMODULE	= $(ROOT_PSM_STRMOD_DIR)/$(MODULE)
460Sstevel@tonic-gate
470Sstevel@tonic-gate#
480Sstevel@tonic-gate#	Include common rules.
490Sstevel@tonic-gate#
500Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.sun4u
510Sstevel@tonic-gate
520Sstevel@tonic-gate#
530Sstevel@tonic-gate#	Override defaults to build a unique, local modstubs.o.
540Sstevel@tonic-gate#
550Sstevel@tonic-gateMODSTUBS_DIR	 = $(OBJS_DIR)
560Sstevel@tonic-gate$(MODSTUBS_O)	:= AS_CPPFLAGS += -DKB_MODULE
570Sstevel@tonic-gate
580Sstevel@tonic-gateCLEANFILES	+= $(MODSTUBS_O)
590Sstevel@tonic-gate
600Sstevel@tonic-gate#
610Sstevel@tonic-gate#	Define targets
620Sstevel@tonic-gate#
630Sstevel@tonic-gateALL_TARGET	= $(BINARY)
640Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
650Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
660Sstevel@tonic-gate
670Sstevel@tonic-gate#
680Sstevel@tonic-gate# lint pass one enforcement
690Sstevel@tonic-gate#
700Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
710Sstevel@tonic-gate
720Sstevel@tonic-gate#
73*3066Sjg# For now, disable these lint checks; maintainers should endeavor
74*3066Sjg# to investigate and remove these for maximum lint coverage.
75*3066Sjg# Please do not carry these forward to new Makefiles.
76*3066Sjg#
77*3066SjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
78*3066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
79*3066Sjg
80*3066Sjg#
810Sstevel@tonic-gate#	Default build targets.
820Sstevel@tonic-gate#
830Sstevel@tonic-gate.KEEP_STATE:
840Sstevel@tonic-gate
850Sstevel@tonic-gatedef:		$(DEF_DEPS)
860Sstevel@tonic-gate
870Sstevel@tonic-gateall:		$(ALL_DEPS)
880Sstevel@tonic-gate
890Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
900Sstevel@tonic-gate
910Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
920Sstevel@tonic-gate
930Sstevel@tonic-gatelint:		$(LINT_DEPS)
940Sstevel@tonic-gate
950Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
960Sstevel@tonic-gate
970Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
980Sstevel@tonic-gate
990Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
1000Sstevel@tonic-gate
1010Sstevel@tonic-gate#
1020Sstevel@tonic-gate#	Include common targets.
1030Sstevel@tonic-gate#
1040Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.targ
105