1af8d6800SHans Rosenfeld# 2af8d6800SHans Rosenfeld# CDDL HEADER START 3af8d6800SHans Rosenfeld# 4af8d6800SHans Rosenfeld# This file and its contents are supplied under the terms of the 5af8d6800SHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0. 6af8d6800SHans Rosenfeld# You may only use this file in accordance with the terms of version 7af8d6800SHans Rosenfeld# 1.0 of the CDDL. 8af8d6800SHans Rosenfeld# 9af8d6800SHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this 10af8d6800SHans Rosenfeld# source. A copy of the CDDL is also available via the Internet at 11af8d6800SHans Rosenfeld# http://www.illumos.org/license/CDDL. 12af8d6800SHans Rosenfeld# 13af8d6800SHans Rosenfeld# CDDL HEADER END 14af8d6800SHans Rosenfeld# 15af8d6800SHans Rosenfeld# 16af8d6800SHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 17af8d6800SHans Rosenfeld# 18af8d6800SHans Rosenfeld 19af8d6800SHans Rosenfeld# 20af8d6800SHans Rosenfeld# Paths to the base of the uts directory trees 21af8d6800SHans Rosenfeld# 22af8d6800SHans RosenfeldUTSBASE = ../.. 23af8d6800SHans Rosenfeld 24af8d6800SHans Rosenfeld# 25af8d6800SHans Rosenfeld# Define the module and object file sets. 26af8d6800SHans Rosenfeld# 27af8d6800SHans RosenfeldMODULE = nvme 28af8d6800SHans RosenfeldOBJECTS = $(NVME_OBJS:%=$(OBJS_DIR)/%) 29af8d6800SHans RosenfeldLINTS = $(NVME_OBJS:%.o=$(LINTS_DIR)/%.ln) 30af8d6800SHans RosenfeldROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 31af8d6800SHans RosenfeldCONF_SRCDIR = $(UTSBASE)/common/io/nvme 32af8d6800SHans Rosenfeld# 33af8d6800SHans Rosenfeld# Include common rules. 34af8d6800SHans Rosenfeld# 35af8d6800SHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel 36af8d6800SHans Rosenfeld 37af8d6800SHans Rosenfeld# 38af8d6800SHans Rosenfeld# Define targets 39af8d6800SHans Rosenfeld# 40af8d6800SHans RosenfeldALL_TARGET = $(BINARY) 41af8d6800SHans RosenfeldLINT_TARGET = $(MODULE).lint 42af8d6800SHans RosenfeldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 43af8d6800SHans Rosenfeld 44af8d6800SHans Rosenfeld# 45af8d6800SHans Rosenfeld# Driver depends on blkdev 46af8d6800SHans Rosenfeld# 47*eb587f61SHans RosenfeldLDFLAGS += -dy -N drv/blkdev -N misc/sata 48af8d6800SHans Rosenfeld 49af8d6800SHans Rosenfeld# 50af8d6800SHans Rosenfeld# Default build targets. 51af8d6800SHans Rosenfeld# 52af8d6800SHans Rosenfeld.KEEP_STATE: 53af8d6800SHans Rosenfeld 54af8d6800SHans Rosenfelddef: $(DEF_DEPS) 55af8d6800SHans Rosenfeld 56af8d6800SHans Rosenfeldall: $(ALL_DEPS) 57af8d6800SHans Rosenfeld 58af8d6800SHans Rosenfeldclean: $(CLEAN_DEPS) 59af8d6800SHans Rosenfeld 60af8d6800SHans Rosenfeldclobber: $(CLOBBER_DEPS) 61af8d6800SHans Rosenfeld 62af8d6800SHans Rosenfeldlint: $(LINT_DEPS) 63af8d6800SHans Rosenfeld 64af8d6800SHans Rosenfeldmodlintlib: $(MODLINTLIB_DEPS) 65af8d6800SHans Rosenfeld 66af8d6800SHans Rosenfeldclean.lint: $(CLEAN_LINT_DEPS) 67af8d6800SHans Rosenfeld 68af8d6800SHans Rosenfeldinstall: $(INSTALL_DEPS) 69af8d6800SHans Rosenfeld 70af8d6800SHans Rosenfeld# 71af8d6800SHans Rosenfeld# Include common targets. 72af8d6800SHans Rosenfeld# 73af8d6800SHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ 74