xref: /illumos-gate/usr/src/uts/intel/skd/Makefile (revision 2a1fd0ffe121888d44fdec321c25b53dcfaa9118)
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 2015 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# Overrides
59#
60# For now, disable these compiler warnigns; maintainers should endeavor
61# to investigate and remove these for maximum lint coverage.
62# Please do not carry these forward to new Makefiles.
63CERRWARN	+= -_gcc=-Wno-format
64CERRWARN	+= -_gcc=-Wno-format-extra-args
65
66#
67#	Default build targets.
68#
69.KEEP_STATE:
70
71def:		$(DEF_DEPS)
72
73all:		$(ALL_DEPS)
74
75clean:		$(CLEAN_DEPS)
76
77clobber:	$(CLOBBER_DEPS)
78
79lint:		$(LINT_DEPS)
80
81modlintlib:	$(MODLINTLIB_DEPS)
82
83clean.lint:	$(CLEAN_LINT_DEPS)
84
85install:	$(INSTALL_DEPS)
86
87#
88#	Include common targets.
89#
90include $(UTSBASE)/intel/Makefile.targ
91