1508a5725SJoshua M. Clulow# 2508a5725SJoshua M. Clulow# This file and its contents are supplied under the terms of the 3508a5725SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0. 4508a5725SJoshua M. Clulow# You may only use this file in accordance with the terms of version 5508a5725SJoshua M. Clulow# 1.0 of the CDDL. 6508a5725SJoshua M. Clulow# 7508a5725SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this 8508a5725SJoshua M. Clulow# source. A copy of the CDDL is also available via the Internet at 9508a5725SJoshua M. Clulow# http://www.illumos.org/license/CDDL. 10508a5725SJoshua M. Clulow# 11508a5725SJoshua M. Clulow 12508a5725SJoshua M. Clulow# 13*bfd83fd3SRobert Mustacchi# Copyright (c) 2017, Joyent, Inc. 14508a5725SJoshua M. Clulow# 15508a5725SJoshua M. Clulow 16508a5725SJoshua M. Clulow# 17508a5725SJoshua M. Clulow# Path to the base of the uts directory tree 18508a5725SJoshua M. Clulow# 19508a5725SJoshua M. ClulowUTSBASE = ../.. 20508a5725SJoshua M. Clulow 21508a5725SJoshua M. Clulow# 22508a5725SJoshua M. Clulow# Define the module and object file sets. 23508a5725SJoshua M. Clulow# 24508a5725SJoshua M. ClulowMODULE = smrt 25508a5725SJoshua M. ClulowOBJECTS = $(SMRT_OBJS:%=$(OBJS_DIR)/%) 26508a5725SJoshua M. ClulowLINTS = $(SMRT_OBJS:%.o=$(LINTS_DIR)/%.ln) 27508a5725SJoshua M. ClulowROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 28508a5725SJoshua M. ClulowCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/smrt 29508a5725SJoshua M. Clulow 30508a5725SJoshua M. Clulow# 31*bfd83fd3SRobert Mustacchi# Include common rules. 32*bfd83fd3SRobert Mustacchi# 33*bfd83fd3SRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 34*bfd83fd3SRobert Mustacchi 35*bfd83fd3SRobert Mustacchi# 36508a5725SJoshua M. Clulow# Define targets 37508a5725SJoshua M. Clulow# 38508a5725SJoshua M. ClulowALL_TARGET = $(BINARY) $(CONFMOD) 39508a5725SJoshua M. ClulowLINT_TARGET = $(MODULE).lint 40508a5725SJoshua M. ClulowINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 41508a5725SJoshua M. Clulow 42508a5725SJoshua M. Clulow# 43508a5725SJoshua M. Clulow# Kernel Module Dependencies 44508a5725SJoshua M. Clulow# 45508a5725SJoshua M. ClulowLDFLAGS += -dy -Nmisc/scsi 46508a5725SJoshua M. Clulow 47508a5725SJoshua M. Clulow 48508a5725SJoshua M. Clulow# 49508a5725SJoshua M. Clulow# Default build targets. 50508a5725SJoshua M. Clulow# 51508a5725SJoshua M. Clulow.KEEP_STATE: 52508a5725SJoshua M. Clulow 53508a5725SJoshua M. Clulowdef: $(DEF_DEPS) 54508a5725SJoshua M. Clulow 55508a5725SJoshua M. Clulowall: $(ALL_DEPS) 56508a5725SJoshua M. Clulow 57508a5725SJoshua M. Clulowclean: $(CLEAN_DEPS) 58508a5725SJoshua M. Clulow 59508a5725SJoshua M. Clulowclobber: $(CLOBBER_DEPS) 60508a5725SJoshua M. Clulow 61508a5725SJoshua M. Clulowlint: $(LINT_DEPS) 62508a5725SJoshua M. Clulow 63508a5725SJoshua M. Clulowmodlintlib: $(MODLINTLIB_DEPS) 64508a5725SJoshua M. Clulow 65508a5725SJoshua M. Clulowclean.lint: $(CLEAN_LINT_DEPS) 66508a5725SJoshua M. Clulow 67508a5725SJoshua M. Clulowinstall: $(INSTALL_DEPS) 68508a5725SJoshua M. Clulow 69508a5725SJoshua M. Clulow# 70508a5725SJoshua M. Clulow# Include common targets. 71508a5725SJoshua M. Clulow# 72508a5725SJoshua M. Clulowinclude $(UTSBASE)/intel/Makefile.targ 73