5157 remove ELFSIGN leftovers from nightly
[unleashed.git] / usr / src / uts / intel / dprov / Makefile
blobb0e2a550912d7c2215645beaa3bb4b848a616e61
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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).
37 UTSBASE = ../..
38 COM_DIR = $(SRC)/common/crypto
41 # Define the module and object file sets.
43 MODULE = dprov
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
59 # Define targets
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.
93 .KEEP_STATE:
95 def: $(DEF_DEPS)
97 all: $(ALL_DEPS)
99 clean: $(CLEAN_DEPS)
101 clobber: $(CLOBBER_DEPS)
103 lint: $(LINT_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