xref: /illumos-gate/usr/src/uts/intel/nvme/Makefile (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
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# Driver depends on blkdev
44#
45LDFLAGS		+= -N drv/blkdev -N misc/sata
46
47#
48#	Default build targets.
49#
50.KEEP_STATE:
51
52def:		$(DEF_DEPS)
53
54all:		$(ALL_DEPS)
55
56clean:		$(CLEAN_DEPS)
57
58clobber:	$(CLOBBER_DEPS)
59
60install:	$(INSTALL_DEPS)
61
62#
63#	Include common targets.
64#
65include $(UTSBASE)/intel/Makefile.targ
66