kernel: don't install modules into $ISADIR
[unleashed.git] / usr / src / uts / intel / des / Makefile
blob96fb1d4c8ace5862dd746b86bbab0533316ff9d6
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 # uts/intel/des/Makefile
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
27 # Use is subject to license terms.
31 # This makefile drives the production of the des crypto kernel module.
33 # intel architecture dependent
37 # Path to the base of the uts directory tree (usually /usr/src/uts).
39 UTSBASE = ../..
40 COM_DIR = $(COMMONBASE)/crypto
43 # Define the module and object file sets.
45 MODULE = des
46 OBJECTS = $(DES_OBJS:%=$(OBJS_DIR)/%)
47 ROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
48 ROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
49 LINK_TARGET = ../../kernel/crypto/$(MODULE)
52 # Include common rules.
54 include $(UTSBASE)/intel/Makefile.intel
57 # Define targets
59 ALL_TARGET = $(BINARY)
60 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
63 # Linkage dependencies
65 LDFLAGS += -dy -Nmisc/kcf
67 CPPFLAGS += -I$(COM_DIR)
70 # For now, disable these compiler warnings; maintainers should endeavor to
71 # investigate and remove these for maximum coverage. Please do not carry
72 # these forward to new Makefiles.
75 CERRWARN += -Wno-parentheses
76 CERRWARN += -Wno-uninitialized
79 # Default build targets.
81 .KEEP_STATE:
83 def: $(DEF_DEPS)
85 all: $(ALL_DEPS)
87 clean: $(CLEAN_DEPS)
89 clobber: $(CLOBBER_DEPS)
91 install: $(INSTALL_DEPS)
93 $(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE)
94 -$(RM) $@; ln -s $(LINK_TARGET) $@
97 # Include common targets.
99 include $(UTSBASE)/intel/Makefile.targ