Makefile revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# CDDL HEADER START
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# The contents of this file are subject to the terms of the
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Common Development and Distribution License (the "License").
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# You may not use this file except in compliance with the License.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# or http://www.opensolaris.org/os/licensing.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# See the License for the specific language governing permissions
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# and limitations under the License.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# When distributing Covered Code, include this CDDL HEADER in each
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# If applicable, add the following below this CDDL HEADER, with the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# CDDL HEADER END
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
eb9158dea141f092a53bcc111a8e965b42fa9502jvergara# Use is subject to license terms.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Copyright 2016 Joyent, Inc.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# This makefile drives the production of the pci-ide "drv"
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# kernel module.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# i86xpv implementation architecture dependent
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Path to the base of the uts directory tree (usually /usr/src/uts).
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffUTSBASE = ../..
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Define the module and object file sets.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffMODULE = pci-ide
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffOBJECTS = $(PCIIDE_OBJS:%=$(OBJS_DIR)/%)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffLINTS = $(PCIIDE_OBJS:%.o=$(LINTS_DIR)/%.ln)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCONF_SRCDIR = $(UTSBASE)/common/io/pci-ide
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Include common rules.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Define targets
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffALL_TARGET = $(BINARY) $(CONFMOD)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffLINT_TARGET = $(MODULE).lint
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
b610c3e7694ee7d23d00c046d9cdc37989102492jvergara#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Overrides.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffDEBUG_FLGS =
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffDEBUG_DEFS += $(DEBUG_FLGS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffINC_PATH += -I$(UTSBASE)/common/io/pci-ide
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCERRWARN += -_gcc=-Wno-switch
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCERRWARN += -_gcc=-Wno-unused-function
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Default build targets.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff.KEEP_STATE:
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffdef: $(DEF_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffall: $(ALL_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffclean: $(CLEAN_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffclobber: $(CLOBBER_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcdufflint: $(LINT_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffmodlintlib: $(MODLINTLIB_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffclean.lint: $(CLEAN_LINT_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinstall: $(INSTALL_DEPS)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff# Include common targets.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinclude $(UTSBASE)/i86xpv/Makefile.targ
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff