xref: /titanic_50/usr/src/uts/sparc/kssl/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1c28749e9Skais#
2c28749e9Skais# CDDL HEADER START
3c28749e9Skais#
4c28749e9Skais# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7c28749e9Skais#
8c28749e9Skais# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c28749e9Skais# or http://www.opensolaris.org/os/licensing.
10c28749e9Skais# See the License for the specific language governing permissions
11c28749e9Skais# and limitations under the License.
12c28749e9Skais#
13c28749e9Skais# When distributing Covered Code, include this CDDL HEADER in each
14c28749e9Skais# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c28749e9Skais# If applicable, add the following below this CDDL HEADER, with the
16c28749e9Skais# fields enclosed by brackets "[]" replaced with your own identifying
17c28749e9Skais# information: Portions Copyright [yyyy] [name of copyright owner]
18c28749e9Skais#
19c28749e9Skais# CDDL HEADER END
20c28749e9Skais#
21c28749e9Skais#
22bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23c28749e9Skais# Use is subject to license terms.
24c28749e9Skais#
25*7014882cSRichard Lowe
26c28749e9Skais#
27c28749e9Skais#	This makefile drives the production of the kernel SSL driver
28c28749e9Skais#	kernel module.
29c28749e9Skais#
30c28749e9Skais#	sparc architecture dependent
31c28749e9Skais#
32c28749e9Skais
33c28749e9Skais#
34c28749e9Skais#	Path to the base of the uts directory tree (usually /usr/src/uts).
35c28749e9Skais#
36c28749e9SkaisUTSBASE	= ../..
37c28749e9Skais
38c28749e9Skais#
39c28749e9Skais#	Define the module and object file sets.
40c28749e9Skais#
41c28749e9SkaisMODULE		= kssl
42c28749e9SkaisOBJECTS		= $(KSSL_OBJS:%=$(OBJS_DIR)/%)
43c28749e9SkaisLINTS		= $(KSSL_OBJS:%.o=$(LINTS_DIR)/%.ln)
44c28749e9SkaisROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45c28749e9SkaisCONF_SRCDIR	= $(UTSBASE)/common/inet/kssl
46c28749e9Skais
47c28749e9Skais#
48c28749e9Skais#	Include common rules.
49c28749e9Skais#
50c28749e9Skaisinclude $(UTSBASE)/sparc/Makefile.sparc
51c28749e9Skais
52c28749e9Skais#
53c28749e9Skais#	Define targets
54c28749e9Skais#
55c28749e9SkaisALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56c28749e9SkaisLINT_TARGET	= $(MODULE).lint
57c28749e9SkaisINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
58c28749e9Skais
59c28749e9Skais#
60c28749e9Skais# lint pass one enforcement
61c28749e9Skais#
62c28749e9SkaisCFLAGS		+= $(CCVERBOSE)
63c28749e9Skais
64c28749e9SkaisLDFLAGS		+= -dy -Nmisc/md5 -Nmisc/kcf
65c28749e9Skais
66c28749e9Skais#
67bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
68bb25c06cSjg# to investigate and remove these for maximum lint coverage.
69bb25c06cSjg# Please do not carry these forward to new Makefiles.
70bb25c06cSjg#
71bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
73bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
75bb25c06cSjg
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
77*7014882cSRichard Lowe
78bb25c06cSjg#
79c28749e9Skais#	Default build targets.
80c28749e9Skais#
81c28749e9Skais.KEEP_STATE:
82c28749e9Skais
83c28749e9Skaisdef:		$(DEF_DEPS)
84c28749e9Skais
85c28749e9Skaisall:		$(ALL_DEPS)
86c28749e9Skais
87c28749e9Skaisclean:		$(CLEAN_DEPS)
88c28749e9Skais
89c28749e9Skaisclobber:	$(CLOBBER_DEPS)
90c28749e9Skais
91c28749e9Skaislint:		$(LINT_DEPS)
92c28749e9Skais
93c28749e9Skaismodlintlib:	$(MODLINTLIB_DEPS)
94c28749e9Skais
95c28749e9Skaisclean.lint:	$(CLEAN_LINT_DEPS)
96c28749e9Skais
97c28749e9Skaisinstall:	$(INSTALL_DEPS)
98c28749e9Skais
99c28749e9Skais#
100c28749e9Skais#	Include common targets.
101c28749e9Skais#
102c28749e9Skaisinclude $(UTSBASE)/sparc/Makefile.targ
103