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.
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.
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]
22 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
29 # This makefile drives the production of the dummy KEF provider.
31 # intel implementation architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
38 COM_DIR
= $(SRC
)/common
/crypto
41 # Define the module and object file sets.
44 OBJECTS
= $(DPROV_OBJS
:%=$(OBJS_DIR
)/%)
45 LINTS
= $(DPROV_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
46 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
47 ROOTLINK
= $(ROOT_CRYPTO_DIR
)/$(MODULE
)
48 TARGET_32
= ..
/..
/kernel
/drv
/$(MODULE
)
49 TARGET_64
= ..
/..
/..
/kernel
/drv
/$(SUBDIR64
)/$(MODULE
)
50 LINK_TARGET
= $(TARGET_
$(CLASS
))
51 CONF_SRCDIR
= $(UTSBASE
)/common
/crypto
/io
54 # Include common rules.
56 include $(UTSBASE
)/intel
/Makefile.intel
61 ALL_TARGET
= $(BINARY
) $(SRC_CONFFILE
)
62 LINT_TARGET
= $(MODULE
).lint
63 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOTLINK
) $(ROOT_CONFFILE
)
66 # Linkage dependencies
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.
72 LDFLAGS
+= -dy
-Nmisc
/kcf
74 CFLAGS
+= $(CCVERBOSE
) -I
$(COM_DIR
)
75 LINTFLAGS
+= -I
$(COM_DIR
)
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.
82 LINTTAGS
+= -erroff
=E_SUSPICIOUS_COMPARISON
83 LINTTAGS
+= -erroff
=E_ASSIGN_NARROW_CONV
84 LINTTAGS
+= -erroff
=E_SUPPRESSION_DIRECTIVE_UNUSED
86 CERRWARN
+= -_gcc
=-Wno-switch
87 CERRWARN
+= -_gcc
=-Wno-parentheses
88 CERRWARN
+= -_gcc
=-Wno-unused-label
91 # Default build targets.
101 clobber: $(CLOBBER_DEPS
)
105 modlintlib
: $(MODLINTLIB_DEPS
)
107 clean.lint
: $(CLEAN_LINT_DEPS
)
109 install: $(INSTALL_DEPS
)
111 $(ROOTLINK
): $(ROOT_CRYPTO_DIR
) $(ROOTMODULE
)
112 -$(RM
) $@
; ln
-s
$(LINK_TARGET
) $@
115 # Include common targets.
117 include $(UTSBASE
)/intel
/Makefile.targ