xref: /illumos-gate/usr/src/uts/intel/dprov/Makefile (revision ac2f5fbefc05314fcd97b03f2338b39e6efe643f)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2014 Garrett D'Amore <garrett@damore.org>
23#
24# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27
28#
29#	This makefile drives the production of the dummy KEF provider.
30#
31#	intel implementation architecture dependent
32#
33
34#
35#	Path to the base of the uts directory tree (usually /usr/src/uts).
36#
37UTSBASE	= ../..
38COM_DIR = $(SRC)/common/crypto
39
40#
41#	Define the module and object file sets.
42#
43MODULE		= dprov
44OBJECTS		= $(DPROV_OBJS:%=$(OBJS_DIR)/%)
45LINTS		= $(DPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
46ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47ROOTLINK	= $(ROOT_CRYPTO_DIR)/$(MODULE)
48TARGET_32	= ../../kernel/drv/$(MODULE)
49TARGET_64	= ../../../kernel/drv/$(SUBDIR64)/$(MODULE)
50LINK_TARGET	= $(TARGET_$(CLASS))
51CONF_SRCDIR	= $(UTSBASE)/common/crypto/io
52
53#
54#	Include common rules.
55#
56include $(UTSBASE)/intel/Makefile.intel
57
58#
59#	Define targets
60#
61ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
62LINT_TARGET	= $(MODULE).lint
63INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
64
65#
66# Linkage dependencies
67#
68# Note that regular providers do not need to have an explicit dependency
69# on KCF. This is a special case since the test pseudo driver dprov
70# uses private KCF functions.
71#
72LDFLAGS += -dy -Nmisc/kcf
73
74CFLAGS		+= $(CCVERBOSE) -I$(COM_DIR)
75LINTFLAGS	+= -I$(COM_DIR)
76
77#
78# For now, disable these lint checks; maintainers should endeavor
79# to investigate and remove these for maximum lint coverage.
80# Please do not carry these forward to new Makefiles.
81#
82LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
83LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
84LINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
85
86CERRWARN	+= -_gcc=-Wno-switch
87CERRWARN	+= -_gcc=-Wno-parentheses
88CERRWARN	+= -_gcc=-Wno-unused-label
89
90#
91#	Default build targets.
92#
93.KEEP_STATE:
94
95def:		$(DEF_DEPS)
96
97all:		$(ALL_DEPS)
98
99clean:		$(CLEAN_DEPS)
100
101clobber:	$(CLOBBER_DEPS)
102
103lint:		$(LINT_DEPS)
104
105modlintlib:	$(MODLINTLIB_DEPS)
106
107clean.lint:	$(CLEAN_LINT_DEPS)
108
109install:	$(INSTALL_DEPS)
110
111$(ROOTLINK):	$(ROOT_CRYPTO_DIR) $(ROOTMODULE)
112	-$(RM) $@; ln -s $(LINK_TARGET) $@
113
114#
115#	Include common targets.
116#
117include $(UTSBASE)/intel/Makefile.targ
118