Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
d5b7ba26785d7494166d48876362ba30ff30b98awrowe#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# CDDL HEADER START
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames#
5541a81e194dc99521c0ecf904a940b0b65a93f2nd# The contents of this file are subject to the terms of the
9556fb65eecaa55b866b413d5e262cd54be88f21nd# Common Development and Distribution License (the "License").
9556fb65eecaa55b866b413d5e262cd54be88f21nd# You may not use this file except in compliance with the License.
9556fb65eecaa55b866b413d5e262cd54be88f21nd#
9556fb65eecaa55b866b413d5e262cd54be88f21nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7d851311462dce44df8469009f98ba66d7f7f18end# or http://www.opensolaris.org/os/licensing.
7d851311462dce44df8469009f98ba66d7f7f18end# See the License for the specific language governing permissions
7d851311462dce44df8469009f98ba66d7f7f18end# and limitations under the License.
7d851311462dce44df8469009f98ba66d7f7f18end#
7d851311462dce44df8469009f98ba66d7f7f18end# When distributing Covered Code, include this CDDL HEADER in each
987c2c2ff2f19f306357f79d3280b347d96c470fnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
987c2c2ff2f19f306357f79d3280b347d96c470fnd# If applicable, add the following below this CDDL HEADER, with the
987c2c2ff2f19f306357f79d3280b347d96c470fnd# fields enclosed by brackets "[]" replaced with your own identifying
987c2c2ff2f19f306357f79d3280b347d96c470fnd# information: Portions Copyright [yyyy] [name of copyright owner]
99c475e760470ab8ca3d17da82a2f6158466f918rederpj#
99c475e760470ab8ca3d17da82a2f6158466f918rederpj# CDDL HEADER END
99c475e760470ab8ca3d17da82a2f6158466f918rederpj#
99c475e760470ab8ca3d17da82a2f6158466f918rederpj
0b0966806a96fd817692a5420908594a0c7f9f89trawick#
0b0966806a96fd817692a5420908594a0c7f9f89trawick# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0b0966806a96fd817692a5420908594a0c7f9f89trawick# Use is subject to license terms.
8eeb24cab1b849bd17726d0a030cd299209f108cnd#
8eeb24cab1b849bd17726d0a030cd299209f108cnd
8eeb24cab1b849bd17726d0a030cd299209f108cnd#
8eeb24cab1b849bd17726d0a030cd299209f108cnd# This makefile drives the production of the kb streams kernel
8eeb24cab1b849bd17726d0a030cd299209f108cnd# module.
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpj#
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpj# sun4u implementation architecture dependent
7edcfe02796a70f2a5eac12b6766d11067c629a3rederpj#
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpj
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpj#
c2d16e88f6a997b9174b5596db5e03cee5f46a8brederpj# Path to the base of the uts directory tree (usually /usr/src/uts).
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24nd#
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24ndUTSBASE = ../..
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24nd
a16ca336064074171bffc3a6da3444243a06b62btrawick#
a16ca336064074171bffc3a6da3444243a06b62btrawick# Define the module and object file sets.
a16ca336064074171bffc3a6da3444243a06b62btrawick#
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndMODULE = kb
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndOBJECTS = $(KB_OBJS:%=$(OBJS_DIR)/%)
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndLINTS = $(KB_OBJS:%.o=$(LINTS_DIR)/%.ln)
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndROOTMODULE = $(ROOT_PSM_STRMOD_DIR)/$(MODULE)
7de6cb79f71a9007ba2b1e786cbad8b84f05d101nd
7de6cb79f71a9007ba2b1e786cbad8b84f05d101nd#
7de6cb79f71a9007ba2b1e786cbad8b84f05d101nd# Include common rules.
7de6cb79f71a9007ba2b1e786cbad8b84f05d101nd#
862562bece2467ae2e729a270279e07522c654a9rederpjinclude $(UTSBASE)/sun4u/Makefile.sun4u
862562bece2467ae2e729a270279e07522c654a9rederpj
862562bece2467ae2e729a270279e07522c654a9rederpj#
862562bece2467ae2e729a270279e07522c654a9rederpj# Override defaults to build a unique, local modstubs.o.
862562bece2467ae2e729a270279e07522c654a9rederpj#
862562bece2467ae2e729a270279e07522c654a9rederpjMODSTUBS_DIR = $(OBJS_DIR)
862562bece2467ae2e729a270279e07522c654a9rederpj$(MODSTUBS_O) := AS_CPPFLAGS += -DKB_MODULE
aa9b03a5f32732c0caaef03a7ed78ffb290e29e4trawick
aa9b03a5f32732c0caaef03a7ed78ffb290e29e4trawickCLEANFILES += $(MODSTUBS_O)
aa9b03a5f32732c0caaef03a7ed78ffb290e29e4trawick
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpj#
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpj# Define targets
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpj#
a81c9e8561ebd18177a87fecf1226ac654b873f1rederpjALL_TARGET = $(BINARY)
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawickLINT_TARGET = $(MODULE).lint
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawickINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawick
a3954060338ccebc73071e89ac936d4ec15ab352trawick#
a3954060338ccebc73071e89ac936d4ec15ab352trawick# lint pass one enforcement
a3954060338ccebc73071e89ac936d4ec15ab352trawick#
a3954060338ccebc73071e89ac936d4ec15ab352trawickCFLAGS += $(CCVERBOSE)
ab56518227d474ee08f039e4c5540011c1b8a913trawick
ab56518227d474ee08f039e4c5540011c1b8a913trawick#
ab56518227d474ee08f039e4c5540011c1b8a913trawick# For now, disable these lint checks; maintainers should endeavor
4e330708371c3e9b04d1043f0a1ac9368bfbd768coar# to investigate and remove these for maximum lint coverage.
4e330708371c3e9b04d1043f0a1ac9368bfbd768coar# Please do not carry these forward to new Makefiles.
4e330708371c3e9b04d1043f0a1ac9368bfbd768coar#
532a5de31e1a9732da4923f88e4931d0724ebe72ndLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
532a5de31e1a9732da4923f88e4931d0724ebe72ndLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
532a5de31e1a9732da4923f88e4931d0724ebe72nd
219e31b849ef108cd8f58ba0eedae03414e5edb1thommayCERRWARN += -_gcc=-Wno-uninitialized
a98959721afc481c7f3a941f85c462f0b90defdathommay
a98959721afc481c7f3a941f85c462f0b90defdathommay#
a98959721afc481c7f3a941f85c462f0b90defdathommay# Default build targets.
219e31b849ef108cd8f58ba0eedae03414e5edb1thommay#
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick.KEEP_STATE:
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick
dbb916b882c33a4e340b0dba7d75506cfdd85640trawickdef: $(DEF_DEPS)
dbb916b882c33a4e340b0dba7d75506cfdd85640trawick
dbb916b882c33a4e340b0dba7d75506cfdd85640trawickall: $(ALL_DEPS)
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawick
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawickclean: $(CLEAN_DEPS)
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawick
9efe68be3c81ee85225972195fb725dbfc2e8b24trawickclobber: $(CLOBBER_DEPS)
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawicklint: $(LINT_DEPS)
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawick
9efe68be3c81ee85225972195fb725dbfc2e8b24trawickmodlintlib: $(MODLINTLIB_DEPS)
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawickclean.lint: $(CLEAN_LINT_DEPS)
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick
fc25339741311efd7d460f18b6287ef38d76bbe6madhuminstall: $(INSTALL_DEPS)
fc25339741311efd7d460f18b6287ef38d76bbe6madhum
fc25339741311efd7d460f18b6287ef38d76bbe6madhum#
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# Include common targets.
fcdca175a52fe517f2317ba0e2b6e6d14522b869madhum#
19fdbc5566bf67dde644be9e8d38d62db4dd0ba5jerenkrantzinclude $(UTSBASE)/sun4u/Makefile.targ
92a2439559cf1161742650ed9c50c6483bd029cemadhum