xref: /illumos-gate/usr/src/uts/intel/nvme/Makefile (revision 3c9168fa8e9c30d55b3aa2fde74bd7da46df53f5)
1*3c9168faSHans Rosenfeld#
2*3c9168faSHans Rosenfeld# CDDL HEADER START
3*3c9168faSHans Rosenfeld#
4*3c9168faSHans Rosenfeld# This file and its contents are supplied under the terms of the
5*3c9168faSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0.
6*3c9168faSHans Rosenfeld# You may only use this file in accordance with the terms of version
7*3c9168faSHans Rosenfeld# 1.0 of the CDDL.
8*3c9168faSHans Rosenfeld#
9*3c9168faSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this
10*3c9168faSHans Rosenfeld# source.  A copy of the CDDL is also available via the Internet at
11*3c9168faSHans Rosenfeld# http://www.illumos.org/license/CDDL.
12*3c9168faSHans Rosenfeld#
13*3c9168faSHans Rosenfeld# CDDL HEADER END
14*3c9168faSHans Rosenfeld#
15*3c9168faSHans Rosenfeld#
16*3c9168faSHans Rosenfeld# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
17*3c9168faSHans Rosenfeld#
18*3c9168faSHans Rosenfeld
19*3c9168faSHans Rosenfeld#
20*3c9168faSHans Rosenfeld#	Paths to the base of the uts directory trees
21*3c9168faSHans Rosenfeld#
22*3c9168faSHans RosenfeldUTSBASE = ../..
23*3c9168faSHans Rosenfeld
24*3c9168faSHans Rosenfeld#
25*3c9168faSHans Rosenfeld#	Define the module and object file sets.
26*3c9168faSHans Rosenfeld#
27*3c9168faSHans RosenfeldMODULE		= nvme
28*3c9168faSHans RosenfeldOBJECTS		= $(NVME_OBJS:%=$(OBJS_DIR)/%)
29*3c9168faSHans RosenfeldLINTS		= $(NVME_OBJS:%.o=$(LINTS_DIR)/%.ln)
30*3c9168faSHans RosenfeldROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
31*3c9168faSHans RosenfeldCONF_SRCDIR	= $(UTSBASE)/common/io/nvme
32*3c9168faSHans Rosenfeld#
33*3c9168faSHans Rosenfeld#	Include common rules.
34*3c9168faSHans Rosenfeld#
35*3c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.intel
36*3c9168faSHans Rosenfeld
37*3c9168faSHans Rosenfeld#
38*3c9168faSHans Rosenfeld#	Define targets
39*3c9168faSHans Rosenfeld#
40*3c9168faSHans RosenfeldALL_TARGET	= $(BINARY)
41*3c9168faSHans RosenfeldLINT_TARGET	= $(MODULE).lint
42*3c9168faSHans RosenfeldINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
43*3c9168faSHans Rosenfeld
44*3c9168faSHans Rosenfeld#
45*3c9168faSHans Rosenfeld# Driver depends on blkdev
46*3c9168faSHans Rosenfeld#
47*3c9168faSHans RosenfeldLDFLAGS		+= -dy -N drv/blkdev
48*3c9168faSHans Rosenfeld
49*3c9168faSHans Rosenfeld#
50*3c9168faSHans Rosenfeld#	Default build targets.
51*3c9168faSHans Rosenfeld#
52*3c9168faSHans Rosenfeld.KEEP_STATE:
53*3c9168faSHans Rosenfeld
54*3c9168faSHans Rosenfelddef:		$(DEF_DEPS)
55*3c9168faSHans Rosenfeld
56*3c9168faSHans Rosenfeldall:		$(ALL_DEPS)
57*3c9168faSHans Rosenfeld
58*3c9168faSHans Rosenfeldclean:		$(CLEAN_DEPS)
59*3c9168faSHans Rosenfeld
60*3c9168faSHans Rosenfeldclobber:	$(CLOBBER_DEPS)
61*3c9168faSHans Rosenfeld
62*3c9168faSHans Rosenfeldlint:		$(LINT_DEPS)
63*3c9168faSHans Rosenfeld
64*3c9168faSHans Rosenfeldmodlintlib:	$(MODLINTLIB_DEPS)
65*3c9168faSHans Rosenfeld
66*3c9168faSHans Rosenfeldclean.lint:	$(CLEAN_LINT_DEPS)
67*3c9168faSHans Rosenfeld
68*3c9168faSHans Rosenfeldinstall:	$(INSTALL_DEPS)
69*3c9168faSHans Rosenfeld
70*3c9168faSHans Rosenfeld#
71*3c9168faSHans Rosenfeld#	Include common targets.
72*3c9168faSHans Rosenfeld#
73*3c9168faSHans Rosenfeldinclude $(UTSBASE)/intel/Makefile.targ
74