xref: /illumos-gate/usr/src/uts/intel/skein/Makefile (revision 82d0151a)
145818ee1SMatthew Ahrens#
245818ee1SMatthew Ahrens# CDDL HEADER START
345818ee1SMatthew Ahrens#
445818ee1SMatthew Ahrens# The contents of this file are subject to the terms of the
545818ee1SMatthew Ahrens# Common Development and Distribution License (the "License").
645818ee1SMatthew Ahrens# You may not use this file except in compliance with the License.
745818ee1SMatthew Ahrens#
845818ee1SMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
945818ee1SMatthew Ahrens# or http://opensource.org/licenses/CDDL-1.0.
1045818ee1SMatthew Ahrens# See the License for the specific language governing permissions
1145818ee1SMatthew Ahrens# and limitations under the License.
1245818ee1SMatthew Ahrens#
1345818ee1SMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
1445818ee1SMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1545818ee1SMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
1645818ee1SMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
1745818ee1SMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
1845818ee1SMatthew Ahrens#
1945818ee1SMatthew Ahrens# CDDL HEADER END
2045818ee1SMatthew Ahrens#
2145818ee1SMatthew Ahrens#
2245818ee1SMatthew Ahrens# Copyright 2013 Saso Kiselkov.  All rights reserved.
2345818ee1SMatthew Ahrens#
2445818ee1SMatthew Ahrens#
2545818ee1SMatthew Ahrens#	This makefile drives the production of the skein crypto kernel module.
2645818ee1SMatthew Ahrens#
2745818ee1SMatthew Ahrens#	intel architecture dependent
2845818ee1SMatthew Ahrens#
2945818ee1SMatthew Ahrens
3045818ee1SMatthew Ahrens#
3145818ee1SMatthew Ahrens#	Path to the base of the uts directory tree (usually /usr/src/uts).
3245818ee1SMatthew Ahrens#
3345818ee1SMatthew AhrensUTSBASE	= ../..
3445818ee1SMatthew AhrensCOMDIR	= $(COMMONBASE)/crypto
3545818ee1SMatthew Ahrens
3645818ee1SMatthew Ahrens#
3745818ee1SMatthew Ahrens#	Define the module and object file sets.
3845818ee1SMatthew Ahrens#
3945818ee1SMatthew AhrensMODULE		= skein
4045818ee1SMatthew AhrensOBJECTS		= $(SKEIN_OBJS:%=$(OBJS_DIR)/%)
4145818ee1SMatthew AhrensROOTMODULE	= $(ROOT_CRYPTO_DIR)/$(MODULE)
4245818ee1SMatthew AhrensROOTLINK	= $(ROOT_MISC_DIR)/$(MODULE)
4345818ee1SMatthew Ahrens
4445818ee1SMatthew Ahrens#
4545818ee1SMatthew Ahrens#	Include common rules.
4645818ee1SMatthew Ahrens#
4745818ee1SMatthew Ahrensinclude $(UTSBASE)/intel/Makefile.intel
4845818ee1SMatthew Ahrens
4945818ee1SMatthew Ahrens#
5045818ee1SMatthew Ahrens#	Define targets
5145818ee1SMatthew Ahrens#
5245818ee1SMatthew AhrensALL_TARGET	= $(BINARY)
5345818ee1SMatthew AhrensINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
5445818ee1SMatthew Ahrens
5545818ee1SMatthew Ahrens#
5645818ee1SMatthew Ahrens# Linkage dependencies
5745818ee1SMatthew Ahrens#
58*82d0151aSRichard LoweLDFLAGS += -Nmisc/kcf
5945818ee1SMatthew Ahrens
6045818ee1SMatthew AhrensCFLAGS += -I$(COMDIR)
6145818ee1SMatthew Ahrens
6245818ee1SMatthew Ahrens#
6345818ee1SMatthew Ahrens#	Default build targets.
6445818ee1SMatthew Ahrens#
6545818ee1SMatthew Ahrens.KEEP_STATE:
6645818ee1SMatthew Ahrens
6745818ee1SMatthew Ahrensdef:		$(DEF_DEPS)
6845818ee1SMatthew Ahrens
6945818ee1SMatthew Ahrensall:		$(ALL_DEPS)
7045818ee1SMatthew Ahrens
7145818ee1SMatthew Ahrensclean:		$(CLEAN_DEPS)
7245818ee1SMatthew Ahrens
7345818ee1SMatthew Ahrensclobber:	$(CLOBBER_DEPS)
7445818ee1SMatthew Ahrens
7545818ee1SMatthew Ahrensinstall:	$(INSTALL_DEPS)
7645818ee1SMatthew Ahrens
7745818ee1SMatthew Ahrens$(ROOTLINK):	$(ROOT_MISC_DIR) $(ROOTMODULE)
7845818ee1SMatthew Ahrens	-$(RM) $@; ln $(ROOTMODULE) $@
7945818ee1SMatthew Ahrens
8045818ee1SMatthew Ahrens#
8145818ee1SMatthew Ahrens#	Include common targets.
8245818ee1SMatthew Ahrens#
8345818ee1SMatthew Ahrensinclude $(UTSBASE)/intel/Makefile.targ
84