xref: /illumos-gate/usr/src/uts/intel/nvme/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
433c9168faSHans Rosenfeld# Driver depends on blkdev
443c9168faSHans Rosenfeld#
45*82d0151aSRichard LoweLDFLAGS		+= -N drv/blkdev -N misc/sata
463c9168faSHans Rosenfeld
473c9168faSHans Rosenfeld#
483c9168faSHans Rosenfeld#	Default build targets.
493c9168faSHans Rosenfeld#
503c9168faSHans Rosenfeld.KEEP_STATE:
513c9168faSHans Rosenfeld
523c9168faSHans Rosenfelddef:		$(DEF_DEPS)
533c9168faSHans Rosenfeld
543c9168faSHans Rosenfeldall:		$(ALL_DEPS)
553c9168faSHans Rosenfeld
563c9168faSHans Rosenfeldclean:		$(CLEAN_DEPS)
573c9168faSHans Rosenfeld
583c9168faSHans Rosenfeldclobber:	$(CLOBBER_DEPS)
593c9168faSHans Rosenfeld
603c9168faSHans Rosenfeldinstall:	$(INSTALL_DEPS)
613c9168faSHans Rosenfeld
623c9168faSHans Rosenfeld#
633c9168faSHans Rosenfeld#	Include common targets.
643c9168faSHans Rosenfeld#
653c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ
66