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