xref: /illumos-gate/usr/src/uts/intel/nvme/Makefile (revision 533affcb)
1#
2# CDDL HEADER START
3#
4# This file and its contents are supplied under the terms of the
5# Common Development and Distribution License ("CDDL"), version 1.0.
6# You may only use this file in accordance with the terms of version
7# 1.0 of the CDDL.
8#
9# A full copy of the text of the CDDL should have accompanied this
10# source.  A copy of the CDDL is also available via the Internet at
11# http://www.illumos.org/license/CDDL.
12#
13# CDDL HEADER END
14#
15#
16# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
17#
18
19#
20#	Paths to the base of the uts directory trees
21#
22UTSBASE = ../..
23
24#
25#	Define the module and object file sets.
26#
27MODULE		= nvme
28OBJECTS		= $(NVME_OBJS:%=$(OBJS_DIR)/%)
29ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
30CONF_SRCDIR	= $(UTSBASE)/common/io/nvme
31#
32#	Include common rules.
33#
34include $(UTSBASE)/intel/Makefile.intel
35
36#
37#	Define targets
38#
39ALL_TARGET	= $(BINARY)
40INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
41
42#
43# Bits required for common source.
44#
45CPPFLAGS	+= -I$(SRC)/common/nvme
46
47#
48# Driver depends on blkdev
49#
50LDFLAGS		+= -N drv/blkdev -N misc/sata
51
52#
53#	Default build targets.
54#
55.KEEP_STATE:
56
57def:		$(DEF_DEPS)
58
59all:		$(ALL_DEPS)
60
61clean:		$(CLEAN_DEPS)
62
63clobber:	$(CLOBBER_DEPS)
64
65install:	$(INSTALL_DEPS)
66
67#
68#	Include common targets.
69#
70include $(UTSBASE)/intel/Makefile.targ
71