xref: /titanic_52/usr/src/uts/intel/skd/Makefile (revision c0dbe950192897247de6003f2dea1ca3c466fe01)
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 2014 Nexenta Systems, Inc. All rights reserved.
17#
18# uts/intel/skd/Makefile
19#
20#	This makefile drives the production of the skd module, which supports
21#	the sTec S112x PCIe SSD card.
22#
23#	intel architecture dependent
24#
25
26#
27#	Paths to the base of the uts directory trees
28#
29UTSBASE = ../..
30
31#
32#	Define the module and object file sets.
33#
34MODULE		= skd
35OBJECTS		= $(SKD_OBJS:%=$(OBJS_DIR)/%)
36LINTS		= $(SKD_OBJS:%.o=$(LINTS_DIR)/%.ln)
37ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
38CONF_SRCDIR	= $(UTSBASE)/common/io/skd
39
40#
41#	Include common rules.
42#
43include $(UTSBASE)/intel/Makefile.intel
44
45#
46#	Define targets
47#
48ALL_TARGET	= $(BINARY) $(CONFMOD)
49LINT_TARGET	= $(MODULE).lint
50INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51
52#
53# Driver depends on blkdev
54#
55LDFLAGS		+= -dy -N drv/blkdev
56
57#
58#	Default build targets.
59#
60.KEEP_STATE:
61
62def:		$(DEF_DEPS)
63
64all:		$(ALL_DEPS)
65
66clean:		$(CLEAN_DEPS)
67
68clobber:	$(CLOBBER_DEPS)
69
70lint:		$(LINT_DEPS)
71
72modlintlib:	$(MODLINTLIB_DEPS)
73
74clean.lint:	$(CLEAN_LINT_DEPS)
75
76install:	$(INSTALL_DEPS)
77
78#
79#	Include common targets.
80#
81include $(UTSBASE)/intel/Makefile.targ
82