Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# CDDL HEADER START
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# The contents of this file are subject to the terms of the
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Common Development and Distribution License (the "License").
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# You may not use this file except in compliance with the License.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# or http://www.opensolaris.org/os/licensing.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# If applicable, add the following below this CDDL HEADER, with the
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# fields enclosed by brackets "[]" replaced with your own identifying
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen# information: Portions Copyright [yyyy] [name of copyright owner]
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# CDDL HEADER END
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# uts/i86pc/rootnex/Makefile
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
0cf3cdbaa1dad11cbf1ce32e48f1b4ec88cf779fnilgun# Use is subject to license terms.
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung#
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# This makefile drives the production of the rootnex driver
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# i86pc implementation architecture dependent
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen#
89507e27e4d31a7e97f258994e4ba3904de47652nd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Path to the base of the uts directory tree (usually /usr/src/uts).
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
9bcfc3697a91b5215893a7d0206865b13fc72148ndUTSBASE = ../..
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung#
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung# Define the module and object file sets.
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndMODULE = rootnex
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndOBJECTS = $(ROOTNEX_OBJS:%=$(OBJS_DIR)/%)
9bcfc3697a91b5215893a7d0206865b13fc72148ndLINTS = $(ROOTNEX_OBJS:%.o=$(LINTS_DIR)/%.ln)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndCONF_SRCDIR = $(UTSBASE)/i86pc/io
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Include common rules.
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndinclude $(UTSBASE)/i86pc/Makefile.i86pc
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Define targets
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndALL_TARGET = $(BINARY) $(SRC_CONFILE)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndLINT_TARGET = $(MODULE).lint
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Define dependencies on iommulib and acpica
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndLDFLAGS += -dy -N misc/iommulib -N misc/acpica
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# For now, disable these lint checks; maintainers should endeavor
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# to investigate and remove these for maximum lint coverage.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Please do not carry these forward to new Makefiles.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Default build targets.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd.KEEP_STATE:
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnddef: $(DEF_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndall: $(ALL_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndclean: $(CLEAN_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndclobber: $(CLOBBER_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndlint: $(LINT_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndmodlintlib: $(MODLINTLIB_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndclean.lint: $(CLEAN_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndinstall: $(INSTALL_DEPS) $(CONF_INSTALL_DEPS)
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd# Include common targets.
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd#
60e9b3f37c1362c258c50c0fa29b2187a9e1580fndinclude $(UTSBASE)/i86pc/Makefile.targ
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd