xref: /titanic_52/usr/src/uts/sparc/dca/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
188f8b78aSgm89044#
288f8b78aSgm89044# CDDL HEADER START
388f8b78aSgm89044#
488f8b78aSgm89044# The contents of this file are subject to the terms of the
588f8b78aSgm89044# Common Development and Distribution License (the "License").
688f8b78aSgm89044# You may not use this file except in compliance with the License.
788f8b78aSgm89044#
888f8b78aSgm89044# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
988f8b78aSgm89044# or http://www.opensolaris.org/os/licensing.
1088f8b78aSgm89044# See the License for the specific language governing permissions
1188f8b78aSgm89044# and limitations under the License.
1288f8b78aSgm89044#
1388f8b78aSgm89044# When distributing Covered Code, include this CDDL HEADER in each
1488f8b78aSgm89044# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1588f8b78aSgm89044# If applicable, add the following below this CDDL HEADER, with the
1688f8b78aSgm89044# fields enclosed by brackets "[]" replaced with your own identifying
1788f8b78aSgm89044# information: Portions Copyright [yyyy] [name of copyright owner]
1888f8b78aSgm89044#
1988f8b78aSgm89044# CDDL HEADER END
2088f8b78aSgm89044#
2188f8b78aSgm89044
2288f8b78aSgm89044#
23bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2488f8b78aSgm89044# Use is subject to license terms.
2588f8b78aSgm89044#
26*7014882cSRichard Lowe
2788f8b78aSgm89044#
2888f8b78aSgm89044#	This makefile drives the production of the DCA kCF provider.
2988f8b78aSgm89044#
3088f8b78aSgm89044#	sparc implementation architecture dependent
3188f8b78aSgm89044#
3288f8b78aSgm89044
3388f8b78aSgm89044#
3488f8b78aSgm89044#	Path to the base of the uts directory tree (usually /usr/src/uts).
3588f8b78aSgm89044#
3688f8b78aSgm89044UTSBASE	= ../..
3788f8b78aSgm89044
3888f8b78aSgm89044#
3988f8b78aSgm89044#	Define the module and object file sets.
4088f8b78aSgm89044#
4188f8b78aSgm89044MODULE		= dca
4288f8b78aSgm89044OBJECTS		= $(DCA_OBJS:%=$(OBJS_DIR)/%)
4388f8b78aSgm89044LINTS		= $(DCA_OBJS:%.o=$(LINTS_DIR)/%.ln)
4488f8b78aSgm89044ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4588f8b78aSgm89044CONF_SRCDIR	= $(UTSBASE)/common/crypto/io
4688f8b78aSgm89044
4788f8b78aSgm89044#
4888f8b78aSgm89044#	Include common rules.
4988f8b78aSgm89044#
5088f8b78aSgm89044include $(UTSBASE)/sparc/Makefile.sparc
5188f8b78aSgm89044
5288f8b78aSgm89044#	set signing mode
5388f8b78aSgm89044ELFSIGN_MOD	= $(ELFSIGN_CRYPTO)
5488f8b78aSgm89044
5588f8b78aSgm89044#
5688f8b78aSgm89044#	Define targets
5788f8b78aSgm89044#
5888f8b78aSgm89044ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
5988f8b78aSgm89044LINT_TARGET	= $(MODULE).lint
6088f8b78aSgm89044INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
6188f8b78aSgm89044
6288f8b78aSgm89044#
6388f8b78aSgm89044# lint pass one enforcement
6488f8b78aSgm89044#
6588f8b78aSgm89044CFLAGS += $(CCVERBOSE)
6688f8b78aSgm89044CFLAGS += $(C99_ENABLE)
6788f8b78aSgm89044
6888f8b78aSgm89044#
69bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
70bb25c06cSjg# to investigate and remove these for maximum lint coverage.
71bb25c06cSjg# Please do not carry these forward to new Makefiles.
72bb25c06cSjg#
73bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
74bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
75bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
76bb25c06cSjg
77*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
78*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
79*7014882cSRichard Lowe
80bb25c06cSjg#
8188f8b78aSgm89044#	Default build targets.
8288f8b78aSgm89044#
8388f8b78aSgm89044.KEEP_STATE:
8488f8b78aSgm89044
8588f8b78aSgm89044def:		$(DEF_DEPS)
8688f8b78aSgm89044
8788f8b78aSgm89044all:		$(ALL_DEPS)
8888f8b78aSgm89044
8988f8b78aSgm89044clean:		$(CLEAN_DEPS)
9088f8b78aSgm89044
9188f8b78aSgm89044clobber:	$(CLOBBER_DEPS)
9288f8b78aSgm89044
9388f8b78aSgm89044lint:		$(LINT_DEPS)
9488f8b78aSgm89044
9588f8b78aSgm89044modlintlib:	$(MODLINTLIB_DEPS)
9688f8b78aSgm89044
9788f8b78aSgm89044clean.lint:	$(CLEAN_LINT_DEPS)
9888f8b78aSgm89044
9988f8b78aSgm89044install:	$(INSTALL_DEPS)
10088f8b78aSgm89044
10188f8b78aSgm89044$(ROOTLINK):	$(ROOT_CRYPTO_DIR) $(ROOTMODULE)
10288f8b78aSgm89044	-$(RM) $@; ln $(ROOTMODULE) $@
10388f8b78aSgm89044
10488f8b78aSgm89044#
10588f8b78aSgm89044#	Include common targets.
10688f8b78aSgm89044#
10788f8b78aSgm89044include $(UTSBASE)/sparc/Makefile.targ
108