xref: /illumos-gate/usr/src/uts/intel/skd/Makefile (revision f52228b83292315dabb975359cdcf9db662845b2)
1*f52228b8SJoe Beteta#
2*f52228b8SJoe Beteta# CDDL HEADER START
3*f52228b8SJoe Beteta#
4*f52228b8SJoe Beteta# This file and its contents are supplied under the terms of the
5*f52228b8SJoe Beteta# Common Development and Distribution License ("CDDL"), version 1.0.
6*f52228b8SJoe Beteta# You may only use this file in accordance with the terms of version
7*f52228b8SJoe Beteta# 1.0 of the CDDL.
8*f52228b8SJoe Beteta#
9*f52228b8SJoe Beteta# A full copy of the text of the CDDL should have accompanied this
10*f52228b8SJoe Beteta# source.  A copy of the CDDL is also available via the Internet at
11*f52228b8SJoe Beteta# http://www.illumos.org/license/CDDL.
12*f52228b8SJoe Beteta#
13*f52228b8SJoe Beteta# CDDL HEADER END
14*f52228b8SJoe Beteta#
15*f52228b8SJoe Beteta#
16*f52228b8SJoe Beteta# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
17*f52228b8SJoe Beteta#
18*f52228b8SJoe Beteta# uts/intel/skd/Makefile
19*f52228b8SJoe Beteta#
20*f52228b8SJoe Beteta#	This makefile drives the production of the skd module, which supports
21*f52228b8SJoe Beteta#	the sTec S112x PCIe SSD card.
22*f52228b8SJoe Beteta#
23*f52228b8SJoe Beteta#	intel architecture dependent
24*f52228b8SJoe Beteta#
25*f52228b8SJoe Beteta
26*f52228b8SJoe Beteta#
27*f52228b8SJoe Beteta#	Paths to the base of the uts directory trees
28*f52228b8SJoe Beteta#
29*f52228b8SJoe BetetaUTSBASE = ../..
30*f52228b8SJoe Beteta
31*f52228b8SJoe Beteta#
32*f52228b8SJoe Beteta#	Define the module and object file sets.
33*f52228b8SJoe Beteta#
34*f52228b8SJoe BetetaMODULE		= skd
35*f52228b8SJoe BetetaOBJECTS		= $(SKD_OBJS:%=$(OBJS_DIR)/%)
36*f52228b8SJoe BetetaLINTS		= $(SKD_OBJS:%.o=$(LINTS_DIR)/%.ln)
37*f52228b8SJoe BetetaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
38*f52228b8SJoe BetetaCONF_SRCDIR	= $(UTSBASE)/common/io/skd
39*f52228b8SJoe Beteta
40*f52228b8SJoe Beteta#
41*f52228b8SJoe Beteta#	Include common rules.
42*f52228b8SJoe Beteta#
43*f52228b8SJoe Betetainclude $(UTSBASE)/intel/Makefile.intel
44*f52228b8SJoe Beteta
45*f52228b8SJoe Beteta#
46*f52228b8SJoe Beteta#	Define targets
47*f52228b8SJoe Beteta#
48*f52228b8SJoe BetetaALL_TARGET	= $(BINARY) $(CONFMOD)
49*f52228b8SJoe BetetaLINT_TARGET	= $(MODULE).lint
50*f52228b8SJoe BetetaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51*f52228b8SJoe Beteta
52*f52228b8SJoe Beteta#
53*f52228b8SJoe Beteta# Driver depends on blkdev
54*f52228b8SJoe Beteta#
55*f52228b8SJoe BetetaLDFLAGS		+= -dy -N drv/blkdev
56*f52228b8SJoe Beteta
57*f52228b8SJoe Beteta#
58*f52228b8SJoe Beteta#	Default build targets.
59*f52228b8SJoe Beteta#
60*f52228b8SJoe Beteta.KEEP_STATE:
61*f52228b8SJoe Beteta
62*f52228b8SJoe Betetadef:		$(DEF_DEPS)
63*f52228b8SJoe Beteta
64*f52228b8SJoe Betetaall:		$(ALL_DEPS)
65*f52228b8SJoe Beteta
66*f52228b8SJoe Betetaclean:		$(CLEAN_DEPS)
67*f52228b8SJoe Beteta
68*f52228b8SJoe Betetaclobber:	$(CLOBBER_DEPS)
69*f52228b8SJoe Beteta
70*f52228b8SJoe Betetalint:		$(LINT_DEPS)
71*f52228b8SJoe Beteta
72*f52228b8SJoe Betetamodlintlib:	$(MODLINTLIB_DEPS)
73*f52228b8SJoe Beteta
74*f52228b8SJoe Betetaclean.lint:	$(CLEAN_LINT_DEPS)
75*f52228b8SJoe Beteta
76*f52228b8SJoe Betetainstall:	$(INSTALL_DEPS)
77*f52228b8SJoe Beteta
78*f52228b8SJoe Beteta#
79*f52228b8SJoe Beteta#	Include common targets.
80*f52228b8SJoe Beteta#
81*f52228b8SJoe Betetainclude $(UTSBASE)/intel/Makefile.targ
82