xref: /titanic_51/usr/src/uts/intel/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#	intel 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)/intel/Makefile.intel
51c28749e9Skais
52c28749e9Skais#
53c28749e9Skais#	Define targets
54c28749e9Skais#
55c28749e9SkaisALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56c28749e9SkaisLINT_TARGET	= $(MODULE).lint
57c28749e9SkaisINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
58c28749e9Skais
59c28749e9SkaisLDFLAGS		+= -dy -Nmisc/md5 -Nmisc/kcf
60c28749e9Skais
61c28749e9Skais#
62bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
63bb25c06cSjg# to investigate and remove these for maximum lint coverage.
64bb25c06cSjg# Please do not carry these forward to new Makefiles.
65bb25c06cSjg#
66bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
67bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
68bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
69bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
70bb25c06cSjg
71*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
72*7014882cSRichard Lowe
73bb25c06cSjg#
74c28749e9Skais#	Default build targets.
75c28749e9Skais#
76c28749e9Skais.KEEP_STATE:
77c28749e9Skais
78c28749e9Skaisdef:		$(DEF_DEPS)
79c28749e9Skais
80c28749e9Skaisall:		$(ALL_DEPS)
81c28749e9Skais
82c28749e9Skaisclean:		$(CLEAN_DEPS)
83c28749e9Skais
84c28749e9Skaisclobber:	$(CLOBBER_DEPS)
85c28749e9Skais
86c28749e9Skaislint:		$(LINT_DEPS)
87c28749e9Skais
88c28749e9Skaismodlintlib:	$(MODLINTLIB_DEPS)
89c28749e9Skais
90c28749e9Skaisclean.lint:	$(CLEAN_LINT_DEPS)
91c28749e9Skais
92c28749e9Skaisinstall:	$(INSTALL_DEPS)
93c28749e9Skais
94c28749e9Skais#
95c28749e9Skais#	Include common targets.
96c28749e9Skais#
97c28749e9Skaisinclude $(UTSBASE)/intel/Makefile.targ
98