1d4bc0535SKrishna Elango# 2d4bc0535SKrishna Elango# CDDL HEADER START 3d4bc0535SKrishna Elango# 4d4bc0535SKrishna Elango# The contents of this file are subject to the terms of the 5d4bc0535SKrishna Elango# Common Development and Distribution License (the "License"). 6d4bc0535SKrishna Elango# You may not use this file except in compliance with the License. 7d4bc0535SKrishna Elango# 8d4bc0535SKrishna Elango# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d4bc0535SKrishna Elango# or http://www.opensolaris.org/os/licensing. 10d4bc0535SKrishna Elango# See the License for the specific language governing permissions 11d4bc0535SKrishna Elango# and limitations under the License. 12d4bc0535SKrishna Elango# 13d4bc0535SKrishna Elango# When distributing Covered Code, include this CDDL HEADER in each 14d4bc0535SKrishna Elango# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d4bc0535SKrishna Elango# If applicable, add the following below this CDDL HEADER, with the 16d4bc0535SKrishna Elango# fields enclosed by brackets "[]" replaced with your own identifying 17d4bc0535SKrishna Elango# information: Portions Copyright [yyyy] [name of copyright owner] 18d4bc0535SKrishna Elango# 19d4bc0535SKrishna Elango# CDDL HEADER END 20d4bc0535SKrishna Elango# 21d4bc0535SKrishna Elango# 22d4bc0535SKrishna Elango# uts/intel/pcieb/Makefile 23d4bc0535SKrishna Elango# 24d4bc0535SKrishna Elango# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25d4bc0535SKrishna Elango# Use is subject to license terms. 26d4bc0535SKrishna Elango# 27d4bc0535SKrishna Elango# This makefile drives the production of the pcieb driver kernel 28d4bc0535SKrishna Elango# module. 29d4bc0535SKrishna Elango# 30d4bc0535SKrishna Elango 31d4bc0535SKrishna Elango# 32d4bc0535SKrishna Elango# Path to the base of the uts directory tree (usually /usr/src/uts). 33d4bc0535SKrishna Elango# 34d4bc0535SKrishna ElangoUTSBASE = ../.. 35d4bc0535SKrishna Elango 36d4bc0535SKrishna Elango# 37d4bc0535SKrishna Elango# Define the module and object file sets. 38d4bc0535SKrishna Elango# 39d4bc0535SKrishna ElangoMODULE = pcieb 40d4bc0535SKrishna ElangoOBJECTS = $(PCIEB_OBJS:%=$(OBJS_DIR)/%) 41d4bc0535SKrishna ElangoLINTS = $(PCIEB_OBJS:%.o=$(LINTS_DIR)/%.ln) 42d4bc0535SKrishna ElangoROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43d4bc0535SKrishna ElangoCONF_SRCDIR = $(UTSBASE)/common/io/pciex 44d4bc0535SKrishna Elango 45d4bc0535SKrishna Elango# 46d4bc0535SKrishna Elango# Include common rules. 47d4bc0535SKrishna Elango# 48d4bc0535SKrishna Elangoinclude $(UTSBASE)/intel/Makefile.intel 49d4bc0535SKrishna Elango 50d4bc0535SKrishna Elango# 51d4bc0535SKrishna Elango# Define targets 52d4bc0535SKrishna Elango# 53d4bc0535SKrishna ElangoALL_TARGET = $(BINARY) $(SRC_CONFILE) 54d4bc0535SKrishna ElangoLINT_TARGET = $(MODULE).lint 55d4bc0535SKrishna ElangoINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 56d4bc0535SKrishna Elango 57d4bc0535SKrishna Elango# 5826947304SEvan Yan# depends on misc/pcie 59d4bc0535SKrishna Elango# 6026947304SEvan YanLDFLAGS += -dy -Nmisc/pcie 61d4bc0535SKrishna Elango 62d4bc0535SKrishna Elango# 63d4bc0535SKrishna Elango# Override defaults to build a unique, local modstubs.o. 64d4bc0535SKrishna Elango# 65d4bc0535SKrishna ElangoMODSTUBS_DIR = $(OBJS_DIR) 66d4bc0535SKrishna ElangoCLEANFILES += $(MODSTUBS_O) 67d4bc0535SKrishna Elango 68d4bc0535SKrishna Elango# 69d4bc0535SKrishna Elango# For now, disable these lint checks; maintainers should endeavor 70d4bc0535SKrishna Elango# to investigate and remove these for maximum lint coverage. 71d4bc0535SKrishna Elango# Please do not carry these forward to new Makefiles. 72d4bc0535SKrishna Elango# 73d4bc0535SKrishna ElangoLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 74d4bc0535SKrishna ElangoLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 75d4bc0535SKrishna ElangoLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 76d4bc0535SKrishna ElangoLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 77d4bc0535SKrishna Elango 78*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 79*7014882cSRichard Lowe 80d4bc0535SKrishna Elango# 81d4bc0535SKrishna Elango# Default build targets. 82d4bc0535SKrishna Elango# 83d4bc0535SKrishna Elango.KEEP_STATE: 84d4bc0535SKrishna Elango 85d4bc0535SKrishna Elangodef: $(DEF_DEPS) 86d4bc0535SKrishna Elango 87d4bc0535SKrishna Elangoall: $(ALL_DEPS) 88d4bc0535SKrishna Elango 89d4bc0535SKrishna Elangoclean: $(CLEAN_DEPS) 90d4bc0535SKrishna Elango 91d4bc0535SKrishna Elangoclobber: $(CLOBBER_DEPS) 92d4bc0535SKrishna Elango 93d4bc0535SKrishna Elangolint: $(LINT_DEPS) 94d4bc0535SKrishna Elango 95d4bc0535SKrishna Elangomodlintlib: $(MODLINTLIB_DEPS) 96d4bc0535SKrishna Elango 97d4bc0535SKrishna Elangoclean.lint: $(CLEAN_LINT_DEPS) 98d4bc0535SKrishna Elango 99d4bc0535SKrishna Elangoinstall: $(INSTALL_DEPS) 100d4bc0535SKrishna Elango 101d4bc0535SKrishna Elango# 102d4bc0535SKrishna Elango# Include common targets. 103d4bc0535SKrishna Elango# 104d4bc0535SKrishna Elangoinclude $(UTSBASE)/intel/Makefile.targ 105d4bc0535SKrishna Elango 106