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 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
46 ROOTLINK
= $(ROOT_CRYPTO_DIR
)/$(MODULE
)
47 LINK_TARGET
= ..
/..
/kernel
/drv
/$(MODULE
)
48 CONF_SRCDIR
= $(UTSBASE
)/common
/crypto
/io
51 # Include common rules.
53 include $(UTSBASE
)/intel
/Makefile.intel
58 ALL_TARGET
= $(BINARY
) $(SRC_CONFFILE
)
59 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOTLINK
) $(ROOT_CONFFILE
)
62 # Linkage dependencies
64 # Note that regular providers do not need to have an explicit dependency
65 # on KCF. This is a special case since the test pseudo driver dprov
66 # uses private KCF functions.
68 LDFLAGS
+= -dy
-Nmisc
/kcf
70 CFLAGS
+= -I
$(COM_DIR
)
73 # For now, disable these compiler warnings; maintainers should endeavor to
74 # investigate and remove these for maximum coverage. Please do not carry
75 # these forward to new Makefiles.
78 CERRWARN
+= -Wno-switch
79 CERRWARN
+= -Wno-parentheses
80 CERRWARN
+= -Wno-unused-label
83 # Default build targets.
93 clobber: $(CLOBBER_DEPS
)
95 install: $(INSTALL_DEPS
)
97 $(ROOTLINK
): $(ROOT_CRYPTO_DIR
) $(ROOTMODULE
)
98 -$(RM
) $@
; ln
-s
$(LINK_TARGET
) $@
101 # Include common targets.
103 include $(UTSBASE
)/intel
/Makefile.targ