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 RosenfeldROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 303c9168faSHans RosenfeldCONF_SRCDIR = $(UTSBASE)/common/io/nvme 313c9168faSHans Rosenfeld# 323c9168faSHans Rosenfeld# Include common rules. 333c9168faSHans Rosenfeld# 343c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel 353c9168faSHans Rosenfeld 363c9168faSHans Rosenfeld# 373c9168faSHans Rosenfeld# Define targets 383c9168faSHans Rosenfeld# 393c9168faSHans RosenfeldALL_TARGET = $(BINARY) 403c9168faSHans RosenfeldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 413c9168faSHans Rosenfeld 423c9168faSHans Rosenfeld# 43*533affcbSRobert Mustacchi# Bits required for common source. 44*533affcbSRobert Mustacchi# 45*533affcbSRobert MustacchiCPPFLAGS += -I$(SRC)/common/nvme 46*533affcbSRobert Mustacchi 47*533affcbSRobert Mustacchi# 483c9168faSHans Rosenfeld# Driver depends on blkdev 493c9168faSHans Rosenfeld# 5082d0151aSRichard LoweLDFLAGS += -N drv/blkdev -N misc/sata 513c9168faSHans Rosenfeld 523c9168faSHans Rosenfeld# 533c9168faSHans Rosenfeld# Default build targets. 543c9168faSHans Rosenfeld# 553c9168faSHans Rosenfeld.KEEP_STATE: 563c9168faSHans Rosenfeld 573c9168faSHans Rosenfelddef: $(DEF_DEPS) 583c9168faSHans Rosenfeld 593c9168faSHans Rosenfeldall: $(ALL_DEPS) 603c9168faSHans Rosenfeld 613c9168faSHans Rosenfeldclean: $(CLEAN_DEPS) 623c9168faSHans Rosenfeld 633c9168faSHans Rosenfeldclobber: $(CLOBBER_DEPS) 643c9168faSHans Rosenfeld 653c9168faSHans Rosenfeldinstall: $(INSTALL_DEPS) 663c9168faSHans Rosenfeld 673c9168faSHans Rosenfeld# 683c9168faSHans Rosenfeld# Include common targets. 693c9168faSHans Rosenfeld# 703c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ 71