xref: /titanic_52/usr/src/uts/sparc/dca/Makefile (revision 88f8b78a88cbdc6d8c1af5c3e54bc49d25095c98)
1*88f8b78aSgm89044#
2*88f8b78aSgm89044# CDDL HEADER START
3*88f8b78aSgm89044#
4*88f8b78aSgm89044# The contents of this file are subject to the terms of the
5*88f8b78aSgm89044# Common Development and Distribution License (the "License").
6*88f8b78aSgm89044# You may not use this file except in compliance with the License.
7*88f8b78aSgm89044#
8*88f8b78aSgm89044# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*88f8b78aSgm89044# or http://www.opensolaris.org/os/licensing.
10*88f8b78aSgm89044# See the License for the specific language governing permissions
11*88f8b78aSgm89044# and limitations under the License.
12*88f8b78aSgm89044#
13*88f8b78aSgm89044# When distributing Covered Code, include this CDDL HEADER in each
14*88f8b78aSgm89044# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*88f8b78aSgm89044# If applicable, add the following below this CDDL HEADER, with the
16*88f8b78aSgm89044# fields enclosed by brackets "[]" replaced with your own identifying
17*88f8b78aSgm89044# information: Portions Copyright [yyyy] [name of copyright owner]
18*88f8b78aSgm89044#
19*88f8b78aSgm89044# CDDL HEADER END
20*88f8b78aSgm89044#
21*88f8b78aSgm89044
22*88f8b78aSgm89044#
23*88f8b78aSgm89044# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*88f8b78aSgm89044# Use is subject to license terms.
25*88f8b78aSgm89044#
26*88f8b78aSgm89044#ident	"%Z%%M%	%I%	%E% SMI"
27*88f8b78aSgm89044#
28*88f8b78aSgm89044#	This makefile drives the production of the DCA kCF provider.
29*88f8b78aSgm89044#
30*88f8b78aSgm89044#	sparc implementation architecture dependent
31*88f8b78aSgm89044#
32*88f8b78aSgm89044
33*88f8b78aSgm89044#
34*88f8b78aSgm89044#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*88f8b78aSgm89044#
36*88f8b78aSgm89044UTSBASE	= ../..
37*88f8b78aSgm89044
38*88f8b78aSgm89044#
39*88f8b78aSgm89044#	Define the module and object file sets.
40*88f8b78aSgm89044#
41*88f8b78aSgm89044MODULE		= dca
42*88f8b78aSgm89044OBJECTS		= $(DCA_OBJS:%=$(OBJS_DIR)/%)
43*88f8b78aSgm89044LINTS		= $(DCA_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*88f8b78aSgm89044ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*88f8b78aSgm89044CONF_SRCDIR	= $(UTSBASE)/common/crypto/io
46*88f8b78aSgm89044
47*88f8b78aSgm89044#
48*88f8b78aSgm89044#	Include common rules.
49*88f8b78aSgm89044#
50*88f8b78aSgm89044include $(UTSBASE)/sparc/Makefile.sparc
51*88f8b78aSgm89044
52*88f8b78aSgm89044#	set signing mode
53*88f8b78aSgm89044ELFSIGN_MOD	= $(ELFSIGN_CRYPTO)
54*88f8b78aSgm89044
55*88f8b78aSgm89044#
56*88f8b78aSgm89044#	Define targets
57*88f8b78aSgm89044#
58*88f8b78aSgm89044ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
59*88f8b78aSgm89044LINT_TARGET	= $(MODULE).lint
60*88f8b78aSgm89044INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
61*88f8b78aSgm89044
62*88f8b78aSgm89044#
63*88f8b78aSgm89044# lint pass one enforcement
64*88f8b78aSgm89044#
65*88f8b78aSgm89044CFLAGS += $(CCVERBOSE)
66*88f8b78aSgm89044CFLAGS += $(C99_ENABLE)
67*88f8b78aSgm89044
68*88f8b78aSgm89044#
69*88f8b78aSgm89044#	Default build targets.
70*88f8b78aSgm89044#
71*88f8b78aSgm89044.KEEP_STATE:
72*88f8b78aSgm89044
73*88f8b78aSgm89044def:		$(DEF_DEPS)
74*88f8b78aSgm89044
75*88f8b78aSgm89044all:		$(ALL_DEPS)
76*88f8b78aSgm89044
77*88f8b78aSgm89044clean:		$(CLEAN_DEPS)
78*88f8b78aSgm89044
79*88f8b78aSgm89044clobber:	$(CLOBBER_DEPS)
80*88f8b78aSgm89044
81*88f8b78aSgm89044lint:		$(LINT_DEPS)
82*88f8b78aSgm89044
83*88f8b78aSgm89044modlintlib:	$(MODLINTLIB_DEPS)
84*88f8b78aSgm89044
85*88f8b78aSgm89044clean.lint:	$(CLEAN_LINT_DEPS)
86*88f8b78aSgm89044
87*88f8b78aSgm89044install:	$(INSTALL_DEPS)
88*88f8b78aSgm89044
89*88f8b78aSgm89044$(ROOTLINK):	$(ROOT_CRYPTO_DIR) $(ROOTMODULE)
90*88f8b78aSgm89044	-$(RM) $@; ln $(ROOTMODULE) $@
91*88f8b78aSgm89044
92*88f8b78aSgm89044#
93*88f8b78aSgm89044#	Include common targets.
94*88f8b78aSgm89044#
95*88f8b78aSgm89044include $(UTSBASE)/sparc/Makefile.targ
96