18226594fSRick McNeal# 28226594fSRick McNeal# CDDL HEADER START 38226594fSRick McNeal# 48226594fSRick McNeal# The contents of this file are subject to the terms of the 58226594fSRick McNeal# Common Development and Distribution License (the "License"). 68226594fSRick McNeal# You may not use this file except in compliance with the License. 78226594fSRick McNeal# 88226594fSRick McNeal# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98226594fSRick McNeal# or http://www.opensolaris.org/os/licensing. 108226594fSRick McNeal# See the License for the specific language governing permissions 118226594fSRick McNeal# and limitations under the License. 128226594fSRick McNeal# 138226594fSRick McNeal# When distributing Covered Code, include this CDDL HEADER in each 148226594fSRick McNeal# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 158226594fSRick McNeal# If applicable, add the following below this CDDL HEADER, with the 168226594fSRick McNeal# fields enclosed by brackets "[]" replaced with your own identifying 178226594fSRick McNeal# information: Portions Copyright [yyyy] [name of copyright owner] 188226594fSRick McNeal# 198226594fSRick McNeal# CDDL HEADER END 208226594fSRick McNeal# 218226594fSRick McNeal# Copyright 2018, Nexenta Systems, Inc. All Rights Reserved 228226594fSRick McNeal# Use is subject to license terms. 238226594fSRick McNeal# 248226594fSRick McNeal# This makefile drives the production of the smartpqi driver kernel 258226594fSRick McNeal# module. 268226594fSRick McNeal# 278226594fSRick McNeal# intel architecture dependent 288226594fSRick McNeal# 298226594fSRick McNeal 308226594fSRick McNeal# 318226594fSRick McNeal# Paths to the base of the uts directory trees 328226594fSRick McNeal# 33*d363b1b0SRichard LoweUTSBASE = ../.. 348226594fSRick McNeal 358226594fSRick McNeal# 368226594fSRick McNeal# Define the module and object file sets. 378226594fSRick McNeal# 388226594fSRick McNealMODULE = smartpqi 398226594fSRick McNealOBJECTS = $(SMARTPQI_OBJS:%=$(OBJS_DIR)/%) 408226594fSRick McNealROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 418226594fSRick McNealCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/smartpqi/ 428226594fSRick McNeal 438226594fSRick McNeal# 448226594fSRick McNeal# Kernel Module Dependencies 458226594fSRick McNeal# 468226594fSRick McNealLDFLAGS += -Nmisc/scsi -Ndrv/scsi_vhci -Nmisc/sata 478226594fSRick McNeal 488226594fSRick McNeal# 498226594fSRick McNeal# Define targets 508226594fSRick McNeal# 518226594fSRick McNealALL_TARGET = $(BINARY) $(CONFMOD) 528226594fSRick McNealINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 538226594fSRick McNeal 548226594fSRick McNeal# 558226594fSRick McNeal# Include common rules. 568226594fSRick McNeal# 578226594fSRick McNealinclude $(UTSBASE)/intel/Makefile.intel 588226594fSRick McNeal 598226594fSRick McNeal# 608226594fSRick McNeal# Includes 618226594fSRick McNeal# 628226594fSRick McNealINC_PATH += -I$(UTSBASE)/common/io/scsi/adapters/smartpqi 638226594fSRick McNeal 648226594fSRick McNeal# 658226594fSRick McNeal# Default build targets. 668226594fSRick McNeal# 678226594fSRick McNeal.KEEP_STATE: 688226594fSRick McNeal 698226594fSRick McNealdef: $(DEF_DEPS) 708226594fSRick McNeal 718226594fSRick McNealall: $(ALL_DEPS) 728226594fSRick McNeal 738226594fSRick McNealclean: $(CLEAN_DEPS) 748226594fSRick McNeal 758226594fSRick McNealclobber: $(CLOBBER_DEPS) 768226594fSRick McNeal 778226594fSRick McNealinstall: $(INSTALL_DEPS) 788226594fSRick McNeal 798226594fSRick McNeal# 808226594fSRick McNeal# Include common targets. 818226594fSRick McNeal# 828226594fSRick McNealinclude $(UTSBASE)/intel/Makefile.targ 83