xref: /titanic_52/usr/src/uts/sun4v/md5/Makefile (revision 554ff184129088135ad2643c1c9832174a17be88)
1*554ff184Skais#
2*554ff184Skais# CDDL HEADER START
3*554ff184Skais#
4*554ff184Skais# The contents of this file are subject to the terms of the
5*554ff184Skais# Common Development and Distribution License, Version 1.0 only
6*554ff184Skais# (the "License").  You may not use this file except in compliance
7*554ff184Skais# with the License.
8*554ff184Skais#
9*554ff184Skais# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*554ff184Skais# or http://www.opensolaris.org/os/licensing.
11*554ff184Skais# See the License for the specific language governing permissions
12*554ff184Skais# and limitations under the License.
13*554ff184Skais#
14*554ff184Skais# When distributing Covered Code, include this CDDL HEADER in each
15*554ff184Skais# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*554ff184Skais# If applicable, add the following below this CDDL HEADER, with the
17*554ff184Skais# fields enclosed by brackets "[]" replaced with your own identifying
18*554ff184Skais# information: Portions Copyright [yyyy] [name of copyright owner]
19*554ff184Skais#
20*554ff184Skais# CDDL HEADER END
21*554ff184Skais#
22*554ff184Skais#
23*554ff184Skais# uts/sun4v/md5/Makefile
24*554ff184Skais#
25*554ff184Skais# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26*554ff184Skais# Use is subject to license terms.
27*554ff184Skais#
28*554ff184Skais#ident	"%Z%%M%	%I%	%E% SMI"
29*554ff184Skais#
30*554ff184Skais#	This makefile drives the production of the MD5 kernel module.
31*554ff184Skais#
32*554ff184Skais#	sun4v implementation architecture dependent
33*554ff184Skais#
34*554ff184Skais
35*554ff184Skais#
36*554ff184Skais#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*554ff184Skais#
38*554ff184SkaisUTSBASE	= ../..
39*554ff184Skais
40*554ff184Skais#
41*554ff184Skais#	Define the module and object file sets.
42*554ff184Skais#
43*554ff184SkaisMODULE		= md5
44*554ff184SkaisOBJECTS		= $(MD5_OBJS:%=$(OBJS_DIR)/%)
45*554ff184SkaisLINTS		= $(MD5_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*554ff184SkaisROOTMODULE	= $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
47*554ff184SkaisROOTLINK	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
48*554ff184Skais
49*554ff184Skais#
50*554ff184Skais#	Include common rules.
51*554ff184Skais#
52*554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.sun4v
53*554ff184Skais
54*554ff184Skais#
55*554ff184Skais#	Define targets
56*554ff184Skais#
57*554ff184SkaisALL_TARGET	= $(BINARY)
58*554ff184SkaisLINT_TARGET	= $(MODULE).lint
59*554ff184SkaisINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
60*554ff184Skais
61*554ff184Skais#
62*554ff184Skais# lint pass one enforcement
63*554ff184Skais#
64*554ff184SkaisCFLAGS += $(CCVERBOSE)
65*554ff184Skais
66*554ff184Skais#
67*554ff184Skais# watch for ugly -Dsun4u
68*554ff184Skais#
69*554ff184SkaisCPPFLAGS	+= -Dsun4u
70*554ff184Skais
71*554ff184Skais#
72*554ff184Skais# Override the default -xspace setting
73*554ff184Skais#
74*554ff184Skaissparc_SPACEFLAG	= -W0,-Lt -W2,-Rcond_elim
75*554ff184Skais
76*554ff184Skais#
77*554ff184Skais# md5 depends on the kcf framework
78*554ff184Skais#
79*554ff184SkaisLDFLAGS		+= -dy -Nmisc/kcf
80*554ff184Skais
81*554ff184Skais#
82*554ff184Skais# need extra inline file for here.
83*554ff184Skais#
84*554ff184SkaisINLINES += $(SRC)/common/crypto/md5/sparc/sun4v/byteswap.il
85*554ff184Skais
86*554ff184Skais#
87*554ff184Skais#	Default build targets.
88*554ff184Skais#
89*554ff184Skais.KEEP_STATE:
90*554ff184Skais
91*554ff184Skaisdef:		$(DEF_DEPS)
92*554ff184Skais
93*554ff184Skaisall:		$(ALL_DEPS)
94*554ff184Skais
95*554ff184Skaisclean:		$(CLEAN_DEPS)
96*554ff184Skais
97*554ff184Skaisclobber:	$(CLOBBER_DEPS)
98*554ff184Skais
99*554ff184Skaislint:		$(LINT_DEPS)
100*554ff184Skais
101*554ff184Skaismodlintlib:	$(MODLINTLIB_DEPS)
102*554ff184Skais
103*554ff184Skaisclean.lint:	$(CLEAN_LINT_DEPS)
104*554ff184Skais
105*554ff184Skaisinstall:	$(INSTALL_DEPS)
106*554ff184Skais
107*554ff184Skais$(ROOTLINK):	$(ROOT_PSM_MISC_DIR) $(ROOTMODULE)
108*554ff184Skais	-$(RM) $@; ln $(ROOTMODULE) $@
109*554ff184Skais
110*554ff184Skais#
111*554ff184Skais#	Include common targets.
112*554ff184Skais#
113*554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.targ
114