13c9168faSHans Rosenfeld# 23c9168faSHans Rosenfeld# CDDL HEADER START 33c9168faSHans Rosenfeld# 43c9168faSHans Rosenfeld# This file and its contents are supplied under the terms of the 53c9168faSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0. 63c9168faSHans Rosenfeld# You may only use this file in accordance with the terms of version 73c9168faSHans Rosenfeld# 1.0 of the CDDL. 83c9168faSHans Rosenfeld# 93c9168faSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this 103c9168faSHans Rosenfeld# source. A copy of the CDDL is also available via the Internet at 113c9168faSHans Rosenfeld# http://www.illumos.org/license/CDDL. 123c9168faSHans Rosenfeld# 133c9168faSHans Rosenfeld# CDDL HEADER END 143c9168faSHans Rosenfeld# 153c9168faSHans Rosenfeld# 163c9168faSHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 173c9168faSHans Rosenfeld# 183c9168faSHans Rosenfeld 193c9168faSHans Rosenfeld# 203c9168faSHans Rosenfeld# Paths to the base of the uts directory trees 213c9168faSHans Rosenfeld# 223c9168faSHans RosenfeldUTSBASE = ../.. 233c9168faSHans Rosenfeld 243c9168faSHans Rosenfeld# 253c9168faSHans Rosenfeld# Define the module and object file sets. 263c9168faSHans Rosenfeld# 273c9168faSHans RosenfeldMODULE = nvme 283c9168faSHans RosenfeldOBJECTS = $(NVME_OBJS:%=$(OBJS_DIR)/%) 293c9168faSHans RosenfeldLINTS = $(NVME_OBJS:%.o=$(LINTS_DIR)/%.ln) 303c9168faSHans RosenfeldROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 313c9168faSHans RosenfeldCONF_SRCDIR = $(UTSBASE)/common/io/nvme 323c9168faSHans Rosenfeld# 333c9168faSHans Rosenfeld# Include common rules. 343c9168faSHans Rosenfeld# 353c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel 363c9168faSHans Rosenfeld 373c9168faSHans Rosenfeld# 383c9168faSHans Rosenfeld# Define targets 393c9168faSHans Rosenfeld# 403c9168faSHans RosenfeldALL_TARGET = $(BINARY) 413c9168faSHans RosenfeldLINT_TARGET = $(MODULE).lint 423c9168faSHans RosenfeldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 433c9168faSHans Rosenfeld 443c9168faSHans Rosenfeld# 453c9168faSHans Rosenfeld# Driver depends on blkdev 463c9168faSHans Rosenfeld# 47*510a6847SHans RosenfeldLDFLAGS += -dy -N drv/blkdev -N misc/sata 483c9168faSHans Rosenfeld 493c9168faSHans Rosenfeld# 503c9168faSHans Rosenfeld# Default build targets. 513c9168faSHans Rosenfeld# 523c9168faSHans Rosenfeld.KEEP_STATE: 533c9168faSHans Rosenfeld 543c9168faSHans Rosenfelddef: $(DEF_DEPS) 553c9168faSHans Rosenfeld 563c9168faSHans Rosenfeldall: $(ALL_DEPS) 573c9168faSHans Rosenfeld 583c9168faSHans Rosenfeldclean: $(CLEAN_DEPS) 593c9168faSHans Rosenfeld 603c9168faSHans Rosenfeldclobber: $(CLOBBER_DEPS) 613c9168faSHans Rosenfeld 623c9168faSHans Rosenfeldlint: $(LINT_DEPS) 633c9168faSHans Rosenfeld 643c9168faSHans Rosenfeldmodlintlib: $(MODLINTLIB_DEPS) 653c9168faSHans Rosenfeld 663c9168faSHans Rosenfeldclean.lint: $(CLEAN_LINT_DEPS) 673c9168faSHans Rosenfeld 683c9168faSHans Rosenfeldinstall: $(INSTALL_DEPS) 693c9168faSHans Rosenfeld 703c9168faSHans Rosenfeld# 713c9168faSHans Rosenfeld# Include common targets. 723c9168faSHans Rosenfeld# 733c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ 74