1788c47fcSHans Rosenfeld# 2788c47fcSHans Rosenfeld# CDDL HEADER START 3788c47fcSHans Rosenfeld# 4788c47fcSHans Rosenfeld# This file and its contents are supplied under the terms of the 5788c47fcSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0. 6788c47fcSHans Rosenfeld# You may only use this file in accordance with the terms of version 7788c47fcSHans Rosenfeld# 1.0 of the CDDL. 8788c47fcSHans Rosenfeld# 9788c47fcSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this 10788c47fcSHans Rosenfeld# source. A copy of the CDDL is also available via the Internet at 11788c47fcSHans Rosenfeld# http://www.illumos.org/license/CDDL. 12788c47fcSHans Rosenfeld# 13788c47fcSHans Rosenfeld# CDDL HEADER END 14788c47fcSHans Rosenfeld# 15788c47fcSHans Rosenfeld# 16788c47fcSHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 17788c47fcSHans Rosenfeld# 18788c47fcSHans Rosenfeld 19788c47fcSHans Rosenfeld# 20788c47fcSHans Rosenfeld# Paths to the base of the uts directory trees 21788c47fcSHans Rosenfeld# 22788c47fcSHans RosenfeldUTSBASE = ../.. 23788c47fcSHans Rosenfeld 24788c47fcSHans Rosenfeld# 25788c47fcSHans Rosenfeld# Define the module and object file sets. 26788c47fcSHans Rosenfeld# 27788c47fcSHans RosenfeldMODULE = nvme 28788c47fcSHans RosenfeldOBJECTS = $(NVME_OBJS:%=$(OBJS_DIR)/%) 29788c47fcSHans RosenfeldLINTS = $(NVME_OBJS:%.o=$(LINTS_DIR)/%.ln) 30788c47fcSHans RosenfeldROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 31788c47fcSHans RosenfeldCONF_SRCDIR = $(UTSBASE)/common/io/nvme 32788c47fcSHans Rosenfeld# 33788c47fcSHans Rosenfeld# Include common rules. 34788c47fcSHans Rosenfeld# 35788c47fcSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel 36788c47fcSHans Rosenfeld 37788c47fcSHans Rosenfeld# 38788c47fcSHans Rosenfeld# Define targets 39788c47fcSHans Rosenfeld# 40788c47fcSHans RosenfeldALL_TARGET = $(BINARY) 41788c47fcSHans RosenfeldLINT_TARGET = $(MODULE).lint 42788c47fcSHans RosenfeldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 43788c47fcSHans Rosenfeld 44788c47fcSHans Rosenfeld# 45788c47fcSHans Rosenfeld# Driver depends on blkdev 46788c47fcSHans Rosenfeld# 47*f0e4d8f0SHans RosenfeldLDFLAGS += -dy -N drv/blkdev -N misc/sata 48788c47fcSHans Rosenfeld 49788c47fcSHans Rosenfeld# 50788c47fcSHans Rosenfeld# Default build targets. 51788c47fcSHans Rosenfeld# 52788c47fcSHans Rosenfeld.KEEP_STATE: 53788c47fcSHans Rosenfeld 54788c47fcSHans Rosenfelddef: $(DEF_DEPS) 55788c47fcSHans Rosenfeld 56788c47fcSHans Rosenfeldall: $(ALL_DEPS) 57788c47fcSHans Rosenfeld 58788c47fcSHans Rosenfeldclean: $(CLEAN_DEPS) 59788c47fcSHans Rosenfeld 60788c47fcSHans Rosenfeldclobber: $(CLOBBER_DEPS) 61788c47fcSHans Rosenfeld 62788c47fcSHans Rosenfeldlint: $(LINT_DEPS) 63788c47fcSHans Rosenfeld 64788c47fcSHans Rosenfeldmodlintlib: $(MODLINTLIB_DEPS) 65788c47fcSHans Rosenfeld 66788c47fcSHans Rosenfeldclean.lint: $(CLEAN_LINT_DEPS) 67788c47fcSHans Rosenfeld 68788c47fcSHans Rosenfeldinstall: $(INSTALL_DEPS) 69788c47fcSHans Rosenfeld 70788c47fcSHans Rosenfeld# 71788c47fcSHans Rosenfeld# Include common targets. 72788c47fcSHans Rosenfeld# 73788c47fcSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ 74