Makefile revision c333dd99c762d509c7eb6cce222221958e23b4c8
6cd336960c5507cccc01a1e578d77c43f8c03708nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# CDDL HEADER START
6cd336960c5507cccc01a1e578d77c43f8c03708nd#
6cd336960c5507cccc01a1e578d77c43f8c03708nd# The contents of this file are subject to the terms of the
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# Common Development and Distribution License (the "License").
6fbd2e53c97ea6976d93e0ac521adabc55e0fb73nd# You may not use this file except in compliance with the License.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# or http://www.opensolaris.org/os/licensing.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# See the License for the specific language governing permissions
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# and limitations under the License.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# When distributing Covered Code, include this CDDL HEADER in each
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# If applicable, add the following below this CDDL HEADER, with the
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# fields enclosed by brackets "[]" replaced with your own identifying
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# information: Portions Copyright [yyyy] [name of copyright owner]
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# CDDL HEADER END
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# uts/intel/pci_pci/Makefile
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Use is subject to license terms.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd#pragma ident "%Z%%M% %I% %E% SMI"
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
54c42060da90b1e584f6af6a349f964d44c6c740nd# This makefile drives the production of the pci_pci driver kernel module.
54c42060da90b1e584f6af6a349f964d44c6c740nd#
54c42060da90b1e584f6af6a349f964d44c6c740nd
54c42060da90b1e584f6af6a349f964d44c6c740nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Path to the base of the uts directory tree (usually /usr/src/uts).
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndUTSBASE = ../..
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Define the module and object file sets.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndMODULE = pci_pci
eed2a23d9b5986937f1e2b1c120be97744508a72ndOBJECTS = $(PCI_PCINEXUS_OBJS:%=$(OBJS_DIR)/%)
eed2a23d9b5986937f1e2b1c120be97744508a72ndLINTS = $(PCI_PCINEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
eed2a23d9b5986937f1e2b1c120be97744508a72ndROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndINC_PATH += -I$(UTSBASE)/i86pc
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Include common rules.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndinclude $(UTSBASE)/intel/Makefile.intel
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Define targets
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndALL_TARGET = $(BINARY)
eed2a23d9b5986937f1e2b1c120be97744508a72ndLINT_TARGET = $(MODULE).lint
eed2a23d9b5986937f1e2b1c120be97744508a72ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# depends on misc/pcihp
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndLDFLAGS += -dy -Nmisc/pcihp
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Override defaults to build a unique, local modstubs.o.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndMODSTUBS_DIR = $(OBJS_DIR)
eed2a23d9b5986937f1e2b1c120be97744508a72ndCLEANFILES += $(MODSTUBS_O)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Default build targets.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd.KEEP_STATE:
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nddef: $(DEF_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndall: $(ALL_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndclean: $(CLEAN_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndclobber: $(CLOBBER_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndlint: $(LINT_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndmodlintlib: $(MODLINTLIB_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndclean.lint: $(CLEAN_LINT_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndinstall: $(INSTALL_DEPS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Include common targets.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72ndinclude $(UTSBASE)/intel/Makefile.targ
eed2a23d9b5986937f1e2b1c120be97744508a72nd