13446Smrj# 23446Smrj# CDDL HEADER START 33446Smrj# 43446Smrj# The contents of this file are subject to the terms of the 53446Smrj# Common Development and Distribution License (the "License"). 63446Smrj# You may not use this file except in compliance with the License. 73446Smrj# 83446Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93446Smrj# or http://www.opensolaris.org/os/licensing. 103446Smrj# See the License for the specific language governing permissions 113446Smrj# and limitations under the License. 123446Smrj# 133446Smrj# When distributing Covered Code, include this CDDL HEADER in each 143446Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153446Smrj# If applicable, add the following below this CDDL HEADER, with the 163446Smrj# fields enclosed by brackets "[]" replaced with your own identifying 173446Smrj# information: Portions Copyright [yyyy] [name of copyright owner] 183446Smrj# 193446Smrj# CDDL HEADER END 203446Smrj# 213446Smrj# 223446Smrj# uts/intel/pci_pci/Makefile 233446Smrj# 24*10923SEvan.Yan@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 253446Smrj# Use is subject to license terms. 263446Smrj# 273446Smrj# This makefile drives the production of the pci_pci driver kernel module. 283446Smrj# 293446Smrj 303446Smrj# 313446Smrj# Path to the base of the uts directory tree (usually /usr/src/uts). 323446Smrj# 333446SmrjUTSBASE = ../.. 343446Smrj 353446Smrj# 363446Smrj# Define the module and object file sets. 373446Smrj# 383446SmrjMODULE = pci_pci 393446SmrjOBJECTS = $(PCI_PCINEXUS_OBJS:%=$(OBJS_DIR)/%) 403446SmrjLINTS = $(PCI_PCINEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln) 413446SmrjROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 423446Smrj 433446SmrjINC_PATH += -I$(UTSBASE)/i86pc 443446Smrj 453446Smrj# 463446Smrj# Include common rules. 473446Smrj# 483446Smrjinclude $(UTSBASE)/intel/Makefile.intel 493446Smrj 503446Smrj# 513446Smrj# Define targets 523446Smrj# 533446SmrjALL_TARGET = $(BINARY) 543446SmrjLINT_TARGET = $(MODULE).lint 553446SmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 563446Smrj 573446Smrj# 58*10923SEvan.Yan@Sun.COM# depends on misc/pcie and misc/pcihp 593446Smrj# 60*10923SEvan.Yan@Sun.COMLDFLAGS += -dy -Nmisc/pcie -Nmisc/pcihp 613446Smrj 623446Smrj# 633446Smrj# Override defaults to build a unique, local modstubs.o. 643446Smrj# 653446SmrjMODSTUBS_DIR = $(OBJS_DIR) 663446SmrjCLEANFILES += $(MODSTUBS_O) 673446Smrj 683446Smrj# 693446Smrj# Default build targets. 703446Smrj# 713446Smrj.KEEP_STATE: 723446Smrj 733446Smrjdef: $(DEF_DEPS) 743446Smrj 753446Smrjall: $(ALL_DEPS) 763446Smrj 773446Smrjclean: $(CLEAN_DEPS) 783446Smrj 793446Smrjclobber: $(CLOBBER_DEPS) 803446Smrj 813446Smrjlint: $(LINT_DEPS) 823446Smrj 833446Smrjmodlintlib: $(MODLINTLIB_DEPS) 843446Smrj 853446Smrjclean.lint: $(CLEAN_LINT_DEPS) 863446Smrj 873446Smrjinstall: $(INSTALL_DEPS) 883446Smrj 893446Smrj# 903446Smrj# Include common targets. 913446Smrj# 923446Smrjinclude $(UTSBASE)/intel/Makefile.targ 93