1f974f7afSJoshua M. Clulow# 2f974f7afSJoshua M. Clulow# This file and its contents are supplied under the terms of the 3f974f7afSJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0. 4f974f7afSJoshua M. Clulow# You may only use this file in accordance with the terms of version 5f974f7afSJoshua M. Clulow# 1.0 of the CDDL. 6f974f7afSJoshua M. Clulow# 7f974f7afSJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this 8f974f7afSJoshua M. Clulow# source. A copy of the CDDL is also available via the Internet at 9f974f7afSJoshua M. Clulow# http://www.illumos.org/license/CDDL. 10f974f7afSJoshua M. Clulow# 11f974f7afSJoshua M. Clulow 12f974f7afSJoshua M. Clulow# 13*03e92abfSRobert Mustacchi# Copyright (c) 2017, Joyent, Inc. 14f974f7afSJoshua M. Clulow# 15f974f7afSJoshua M. Clulow 16f974f7afSJoshua M. Clulow# 17f974f7afSJoshua M. Clulow# Path to the base of the uts directory tree 18f974f7afSJoshua M. Clulow# 19f974f7afSJoshua M. ClulowUTSBASE = ../.. 20f974f7afSJoshua M. Clulow 21f974f7afSJoshua M. Clulow# 22f974f7afSJoshua M. Clulow# Define the module and object file sets. 23f974f7afSJoshua M. Clulow# 24f974f7afSJoshua M. ClulowMODULE = smrt 25f974f7afSJoshua M. ClulowOBJECTS = $(SMRT_OBJS:%=$(OBJS_DIR)/%) 26f974f7afSJoshua M. ClulowLINTS = $(SMRT_OBJS:%.o=$(LINTS_DIR)/%.ln) 27f974f7afSJoshua M. ClulowROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 28f974f7afSJoshua M. ClulowCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/smrt 29f974f7afSJoshua M. Clulow 30f974f7afSJoshua M. Clulow# 31*03e92abfSRobert Mustacchi# Include common rules. 32*03e92abfSRobert Mustacchi# 33*03e92abfSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 34*03e92abfSRobert Mustacchi 35*03e92abfSRobert Mustacchi# 36f974f7afSJoshua M. Clulow# Define targets 37f974f7afSJoshua M. Clulow# 38f974f7afSJoshua M. ClulowALL_TARGET = $(BINARY) $(CONFMOD) 39f974f7afSJoshua M. ClulowLINT_TARGET = $(MODULE).lint 40f974f7afSJoshua M. ClulowINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 41f974f7afSJoshua M. Clulow 42f974f7afSJoshua M. Clulow# 43f974f7afSJoshua M. Clulow# Kernel Module Dependencies 44f974f7afSJoshua M. Clulow# 45f974f7afSJoshua M. ClulowLDFLAGS += -dy -Nmisc/scsi 46f974f7afSJoshua M. Clulow 47f974f7afSJoshua M. Clulow 48f974f7afSJoshua M. Clulow# 49f974f7afSJoshua M. Clulow# Default build targets. 50f974f7afSJoshua M. Clulow# 51f974f7afSJoshua M. Clulow.KEEP_STATE: 52f974f7afSJoshua M. Clulow 53f974f7afSJoshua M. Clulowdef: $(DEF_DEPS) 54f974f7afSJoshua M. Clulow 55f974f7afSJoshua M. Clulowall: $(ALL_DEPS) 56f974f7afSJoshua M. Clulow 57f974f7afSJoshua M. Clulowclean: $(CLEAN_DEPS) 58f974f7afSJoshua M. Clulow 59f974f7afSJoshua M. Clulowclobber: $(CLOBBER_DEPS) 60f974f7afSJoshua M. Clulow 61f974f7afSJoshua M. Clulowlint: $(LINT_DEPS) 62f974f7afSJoshua M. Clulow 63f974f7afSJoshua M. Clulowmodlintlib: $(MODLINTLIB_DEPS) 64f974f7afSJoshua M. Clulow 65f974f7afSJoshua M. Clulowclean.lint: $(CLEAN_LINT_DEPS) 66f974f7afSJoshua M. Clulow 67f974f7afSJoshua M. Clulowinstall: $(INSTALL_DEPS) 68f974f7afSJoshua M. Clulow 69f974f7afSJoshua M. Clulow# 70f974f7afSJoshua M. Clulow# Include common targets. 71f974f7afSJoshua M. Clulow# 72f974f7afSJoshua M. Clulowinclude $(UTSBASE)/intel/Makefile.targ 73