Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# CDDL HEADER START
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# The contents of this file are subject to the terms of the
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Common Development and Distribution License (the "License").
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# You may not use this file except in compliance with the License.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# or http://www.opensolaris.org/os/licensing.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# See the License for the specific language governing permissions
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# and limitations under the License.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync# When distributing Covered Code, include this CDDL HEADER in each
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# If applicable, add the following below this CDDL HEADER, with the
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# CDDL HEADER END
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Use is subject to license terms.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsync
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsync#
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsync# This makefile drives the production of the oplmsu driver
cec3b04587a02f0dc7d0cc679e9a0de19b730e2cvboxsync# loadable module.
cec3b04587a02f0dc7d0cc679e9a0de19b730e2cvboxsync#
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsync# sun4u opl implementation architecture dependent
cec3b04587a02f0dc7d0cc679e9a0de19b730e2cvboxsync#
1370cf4dc67bdee7d2b6bb3b475e22d4cb394f91vboxsync
4a4d802b46dfabbfd36e88822ff7b17421120469vboxsync#
52f16f53a955f5b24bc2132c418a5fffb700f089vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncUTSBASE = ../../..
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Define the module and object file sets.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncMODULE = oplmsu
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncOBJECTS = $(OPLMSU_OBJS:%=$(OBJS_DIR)/%)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncLINTS = $(OPLMSU_OBJS:%.o=$(LINTS_DIR)/%.ln)
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsyncROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Include common rules.
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncinclude $(UTSBASE)/sun4u/opl/Makefile.opl
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsync
8a7af14e45ca3f1aadcad537ddf79f68a830748cvboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# Define targets
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsyncALL_TARGET = $(BINARY)
9d508d63ddd8cbaa227c3e3176bb376ba98ffa53vboxsyncLINT_TARGET = $(MODULE).lint
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsync
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsync#
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync# lint pass one enforcement
1d94ccd0c6d838a45dea3a79ba295adc4caabcf9vboxsync#
1d94ccd0c6d838a45dea3a79ba295adc4caabcf9vboxsyncCFLAGS += $(CCVERBOSE) -I../sys
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncLDFLAGS += -dy -Ndrv/su
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
9d508d63ddd8cbaa227c3e3176bb376ba98ffa53vboxsyncCERRWARN += -_gcc=-Wno-parentheses
bc1484a141a5638d1c26739e77e8a47c77dc2da3vboxsyncCERRWARN += -_gcc=-Wno-uninitialized
bc1484a141a5638d1c26739e77e8a47c77dc2da3vboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
bc1484a141a5638d1c26739e77e8a47c77dc2da3vboxsync# Default build targets.
218c5abcfe14c89d04353015e755a02447960018vboxsync#
218c5abcfe14c89d04353015e755a02447960018vboxsync.KEEP_STATE:
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
9d508d63ddd8cbaa227c3e3176bb376ba98ffa53vboxsyncdef: $(DEF_DEPS)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncall: $(ALL_DEPS)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncclean: $(CLEAN_DEPS)
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsyncclobber: $(CLOBBER_DEPS)
e7e589ca404045e288030a4151e57b63976cb39dvboxsync
e7e589ca404045e288030a4151e57b63976cb39dvboxsynclint: $(LINT_DEPS)
e7e589ca404045e288030a4151e57b63976cb39dvboxsync
9d508d63ddd8cbaa227c3e3176bb376ba98ffa53vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsync
1d94ccd0c6d838a45dea3a79ba295adc4caabcf9vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
df277f214bcaae98f80456ec998330eaa7460ecavboxsync
4bcaf5d320bf0d88910212509c37bdd634e0879evboxsyncinstall: $(INSTALL_DEPS)
9d508d63ddd8cbaa227c3e3176bb376ba98ffa53vboxsync
e45e3ae4a834169539e689759ba6b3ac71bfe40fvboxsync#
7255e1c7174fd3b892a74dede74e72557f6cced9vboxsync# Include common targets.
52f16f53a955f5b24bc2132c418a5fffb700f089vboxsync#
7255e1c7174fd3b892a74dede74e72557f6cced9vboxsyncinclude $(UTSBASE)/sun4u/opl/Makefile.targ
b4514c911ccdb647c9c0f503f3cee0660f41104avboxsync