xref: /titanic_51/usr/src/uts/intel/smrt/Makefile (revision 508a5725800d0e6af0aa3d5183db13fcf7cad65d)
1*508a5725SJoshua M. Clulow#
2*508a5725SJoshua M. Clulow# This file and its contents are supplied under the terms of the
3*508a5725SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0.
4*508a5725SJoshua M. Clulow# You may only use this file in accordance with the terms of version
5*508a5725SJoshua M. Clulow# 1.0 of the CDDL.
6*508a5725SJoshua M. Clulow#
7*508a5725SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this
8*508a5725SJoshua M. Clulow# source.  A copy of the CDDL is also available via the Internet at
9*508a5725SJoshua M. Clulow# http://www.illumos.org/license/CDDL.
10*508a5725SJoshua M. Clulow#
11*508a5725SJoshua M. Clulow
12*508a5725SJoshua M. Clulow#
13*508a5725SJoshua M. Clulow# Copyright 2016 Joyent, Inc.
14*508a5725SJoshua M. Clulow#
15*508a5725SJoshua M. Clulow
16*508a5725SJoshua M. Clulow#
17*508a5725SJoshua M. Clulow#	Path to the base of the uts directory tree
18*508a5725SJoshua M. Clulow#
19*508a5725SJoshua M. ClulowUTSBASE	= ../..
20*508a5725SJoshua M. Clulow
21*508a5725SJoshua M. Clulow#
22*508a5725SJoshua M. Clulow#	Define the module and object file sets.
23*508a5725SJoshua M. Clulow#
24*508a5725SJoshua M. ClulowMODULE		= smrt
25*508a5725SJoshua M. ClulowOBJECTS		= $(SMRT_OBJS:%=$(OBJS_DIR)/%)
26*508a5725SJoshua M. ClulowLINTS		= $(SMRT_OBJS:%.o=$(LINTS_DIR)/%.ln)
27*508a5725SJoshua M. ClulowROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
28*508a5725SJoshua M. ClulowCONF_SRCDIR     = $(UTSBASE)/common/io/scsi/adapters/smrt
29*508a5725SJoshua M. Clulow
30*508a5725SJoshua M. Clulow#
31*508a5725SJoshua M. Clulow#	Define targets
32*508a5725SJoshua M. Clulow#
33*508a5725SJoshua M. ClulowALL_TARGET	= $(BINARY) $(CONFMOD)
34*508a5725SJoshua M. ClulowLINT_TARGET	= $(MODULE).lint
35*508a5725SJoshua M. ClulowINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
36*508a5725SJoshua M. Clulow
37*508a5725SJoshua M. Clulow#
38*508a5725SJoshua M. Clulow# 	Kernel Module Dependencies
39*508a5725SJoshua M. Clulow#
40*508a5725SJoshua M. ClulowLDFLAGS		+= -dy -Nmisc/scsi
41*508a5725SJoshua M. Clulow
42*508a5725SJoshua M. Clulow#
43*508a5725SJoshua M. Clulow#	Include common rules.
44*508a5725SJoshua M. Clulow#
45*508a5725SJoshua M. Clulowinclude $(UTSBASE)/intel/Makefile.intel
46*508a5725SJoshua M. Clulow
47*508a5725SJoshua M. Clulow
48*508a5725SJoshua M. Clulow#
49*508a5725SJoshua M. Clulow#	Default build targets.
50*508a5725SJoshua M. Clulow#
51*508a5725SJoshua M. Clulow.KEEP_STATE:
52*508a5725SJoshua M. Clulow
53*508a5725SJoshua M. Clulowdef:		$(DEF_DEPS)
54*508a5725SJoshua M. Clulow
55*508a5725SJoshua M. Clulowall:		$(ALL_DEPS)
56*508a5725SJoshua M. Clulow
57*508a5725SJoshua M. Clulowclean:		$(CLEAN_DEPS)
58*508a5725SJoshua M. Clulow
59*508a5725SJoshua M. Clulowclobber:	$(CLOBBER_DEPS)
60*508a5725SJoshua M. Clulow
61*508a5725SJoshua M. Clulowlint:		$(LINT_DEPS)
62*508a5725SJoshua M. Clulow
63*508a5725SJoshua M. Clulowmodlintlib:	$(MODLINTLIB_DEPS)
64*508a5725SJoshua M. Clulow
65*508a5725SJoshua M. Clulowclean.lint:	$(CLEAN_LINT_DEPS)
66*508a5725SJoshua M. Clulow
67*508a5725SJoshua M. Clulowinstall:	$(INSTALL_DEPS)
68*508a5725SJoshua M. Clulow
69*508a5725SJoshua M. Clulow#
70*508a5725SJoshua M. Clulow#	Include common targets.
71*508a5725SJoshua M. Clulow#
72*508a5725SJoshua M. Clulowinclude $(UTSBASE)/intel/Makefile.targ
73