Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / skein / Makefile
blob9f08cc34c325a1c2851a448e1dd48a8c08e487c4
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://opensource.org/licenses/CDDL-1.0.
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 2013 Saso Kiselkov. All rights reserved.
25 # This makefile drives the production of the skein crypto kernel module.
27 # intel architecture dependent
31 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 UTSBASE = ../..
34 COMDIR = $(COMMONBASE)/crypto
37 # Define the module and object file sets.
39 MODULE = skein
40 OBJECTS = $(SKEIN_OBJS:%=$(OBJS_DIR)/%)
41 ROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
42 ROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
45 # Include common rules.
47 include $(UTSBASE)/intel/Makefile.intel
50 # Define targets
52 ALL_TARGET = $(BINARY)
53 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
56 # Linkage dependencies
58 LDFLAGS += -dy -Nmisc/kcf
60 CFLAGS += -I$(COMDIR)
63 # Default build targets.
65 .KEEP_STATE:
67 def: $(DEF_DEPS)
69 all: $(ALL_DEPS)
71 clean: $(CLEAN_DEPS)
73 clobber: $(CLOBBER_DEPS)
75 install: $(INSTALL_DEPS)
77 $(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE)
78 -$(RM) $@; ln $(ROOTMODULE) $@
81 # Include common targets.
83 include $(UTSBASE)/intel/Makefile.targ