xref: /illumos-gate/usr/src/uts/intel/skd/Makefile (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
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)/%)
36ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
37CONF_SRCDIR	= $(UTSBASE)/common/io/skd
38
39#
40#	Include common rules.
41#
42include $(UTSBASE)/intel/Makefile.intel
43
44#
45#	Define targets
46#
47ALL_TARGET	= $(BINARY) $(CONFMOD)
48INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
49
50#
51# Driver depends on blkdev
52#
53LDFLAGS		+= -N drv/blkdev
54
55#
56# Overrides
57#
58# For now, disable these compiler warnigns; maintainers should endeavor
59# to investigate and remove these for maximum coverage.
60# Please do not carry these forward to new Makefiles.
61CERRWARN	+= -_gcc=-Wno-format
62CERRWARN	+= -_gcc=-Wno-format-extra-args
63
64#
65#	Default build targets.
66#
67.KEEP_STATE:
68
69def:		$(DEF_DEPS)
70
71all:		$(ALL_DEPS)
72
73clean:		$(CLEAN_DEPS)
74
75clobber:	$(CLOBBER_DEPS)
76
77install:	$(INSTALL_DEPS)
78
79#
80#	Include common targets.
81#
82include $(UTSBASE)/intel/Makefile.targ
83