12fcbc377Syt160523# 22fcbc377Syt160523# CDDL HEADER START 32fcbc377Syt160523# 42fcbc377Syt160523# The contents of this file are subject to the terms of the 52fcbc377Syt160523# Common Development and Distribution License (the "License"). 62fcbc377Syt160523# You may not use this file except in compliance with the License. 72fcbc377Syt160523# 82fcbc377Syt160523# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92fcbc377Syt160523# or http://www.opensolaris.org/os/licensing. 102fcbc377Syt160523# See the License for the specific language governing permissions 112fcbc377Syt160523# and limitations under the License. 122fcbc377Syt160523# 132fcbc377Syt160523# When distributing Covered Code, include this CDDL HEADER in each 142fcbc377Syt160523# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152fcbc377Syt160523# If applicable, add the following below this CDDL HEADER, with the 162fcbc377Syt160523# fields enclosed by brackets "[]" replaced with your own identifying 172fcbc377Syt160523# information: Portions Copyright [yyyy] [name of copyright owner] 182fcbc377Syt160523# 192fcbc377Syt160523# CDDL HEADER END 202fcbc377Syt160523# 212fcbc377Syt160523 222fcbc377Syt160523# 23689d74b0Syt160523# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 242fcbc377Syt160523# Use is subject to license terms. 252fcbc377Syt160523# 262fcbc377Syt160523 272fcbc377Syt160523# 282fcbc377Syt160523# This makefile drives the production of the 292fcbc377Syt160523# "/kernel/drv/ahci" kernel module. 302fcbc377Syt160523# 312fcbc377Syt160523# intel architecture dependent 322fcbc377Syt160523# 332fcbc377Syt160523 342fcbc377Syt160523# 352fcbc377Syt160523# Path to the base of the uts directory tree (usually /usr/src/uts). 362fcbc377Syt160523# 372fcbc377Syt160523UTSBASE = ../.. 382fcbc377Syt160523 392fcbc377Syt160523# 402fcbc377Syt160523# Define the module and object file sets. 41*5c25b6f1SYuri Pankov 422fcbc377Syt160523MODULE = ahci 432fcbc377Syt160523OBJECTS = $(AHCI_OBJS:%=$(OBJS_DIR)/%) 442fcbc377Syt160523LINTS = $(AHCI_OBJS:%.o=$(LINTS_DIR)/%.ln) 452fcbc377Syt160523ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 462fcbc377Syt160523CONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/ahci 472fcbc377Syt160523 482fcbc377Syt160523# 492fcbc377Syt160523# Include common rules. 502fcbc377Syt160523# 512fcbc377Syt160523include $(UTSBASE)/intel/Makefile.intel 522fcbc377Syt160523 532fcbc377Syt160523# 542fcbc377Syt160523# Define targets 552fcbc377Syt160523# 562fcbc377Syt160523ALL_TARGET = $(BINARY) 572fcbc377Syt160523LINT_TARGET = $(MODULE).lint 582fcbc377Syt160523INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 592fcbc377Syt160523 602fcbc377Syt160523# 612fcbc377Syt160523# Overrides. 622fcbc377Syt160523# 632fcbc377Syt160523DEBUG_FLGS = 642fcbc377Syt160523DEBUG_DEFS += $(DEBUG_FLGS) 652fcbc377Syt160523 662fcbc377Syt160523# 672fcbc377Syt160523# lint pass one enforcement 682fcbc377Syt160523# 692fcbc377Syt160523CFLAGS += $(CCVERBOSE) 702fcbc377Syt160523 717014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 727014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 737014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 747014882cSRichard Lowe 752fcbc377Syt160523# 762fcbc377Syt160523# 772fcbc377Syt160523# we depend on the sata module 782fcbc377Syt160523LDFLAGS += -dy -N misc/sata 792fcbc377Syt160523 802fcbc377Syt160523# 812fcbc377Syt160523# For now, disable these lint checks; maintainers should endeavor 822fcbc377Syt160523# to investigate and remove these for maximum lint coverage. 832fcbc377Syt160523# Please do not carry these forward to new Makefiles. 842fcbc377Syt160523# 852fcbc377Syt160523 862fcbc377Syt160523# 872fcbc377Syt160523# Default build targets. 882fcbc377Syt160523# 892fcbc377Syt160523.KEEP_STATE: 902fcbc377Syt160523 912fcbc377Syt160523def: $(DEF_DEPS) 922fcbc377Syt160523 932fcbc377Syt160523all: $(ALL_DEPS) 942fcbc377Syt160523 952fcbc377Syt160523clean: $(CLEAN_DEPS) 962fcbc377Syt160523 972fcbc377Syt160523clobber: $(CLOBBER_DEPS) 982fcbc377Syt160523 992fcbc377Syt160523lint: $(LINT_DEPS) 1002fcbc377Syt160523 1012fcbc377Syt160523modlintlib: $(MODLINTLIB_DEPS) 1022fcbc377Syt160523 1032fcbc377Syt160523clean.lint: $(CLEAN_LINT_DEPS) 1042fcbc377Syt160523 1052fcbc377Syt160523install: $(INSTALL_DEPS) 1062fcbc377Syt160523 1072fcbc377Syt160523# 1082fcbc377Syt160523# Include common targets. 1092fcbc377Syt160523# 1102fcbc377Syt160523include $(UTSBASE)/intel/Makefile.targ 111