Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User#
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# You may not use this file except in compliance with the License.
8c225507766814e78e168b17a24b8a47ca7f8c37Tinderbox User#
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# or http://www.opensolaris.org/os/licensing.
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# See the License for the specific language governing permissions
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
1c57c3f79db0bf0358bbe6d7b5ad650c0c852f4bTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# If applicable, add the following below this CDDL HEADER, with the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
f9ce6280cec79deb16ff6d9807aa493ff23e10d9Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
0b89eee6167201843c9a46b7e7c63cb1e4e09ba3Tinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# CDDL HEADER END
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Use is subject to license terms.
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#ident "%Z%%M% %I% %E% SMI"
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User# This makefile drives the production of the ugen driver
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# kernel module. intel architecture dependent
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserUTSBASE = ../..
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define the module and object file sets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMODULE = ugen
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntOBJECTS = $(UGEN_OBJS:%=$(OBJS_DIR)/%)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTS = $(UGEN_OBJS:%.o=$(LINTS_DIR)/%.ln)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# Include common rules.
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userinclude $(UTSBASE)/intel/Makefile.intel
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# Define targets
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox UserALL_TARGET = $(BINARY)
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox UserLINT_TARGET = $(MODULE).lint
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User# depends on misc/usba misc/scsi
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User#
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox UserLDFLAGS += -dy -Nmisc/usba
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# For now, disable these lint checks; maintainers should endeavor
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# to investigate and remove these for maximum lint coverage.
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# Please do not carry these forward to new Makefiles.
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox UserLINTTAGS += -erroff=E_STATIC_UNUSED
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User# Default build targets.
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User.KEEP_STATE:
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userdef: $(DEF_DEPS)
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userall: $(ALL_DEPS)
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userclean: $(CLEAN_DEPS)
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userclobber: $(CLOBBER_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userlint: $(LINT_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall: $(INSTALL_DEPS)
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox User
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox User#
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox User# Include common targets.
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox User#
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox Userinclude $(UTSBASE)/intel/Makefile.targ
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User