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