7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington#
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# CDDL HEADER START
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington#
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# The contents of this file are subject to the terms of the
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# Common Development and Distribution License (the "License").
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# You may not use this file except in compliance with the License.
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington#
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# or http://www.opensolaris.org/os/licensing.
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# See the License for the specific language governing permissions
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# and limitations under the License.
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington#
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# When distributing Covered Code, include this CDDL HEADER in each
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# If applicable, add the following below this CDDL HEADER, with the
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# fields enclosed by brackets "[]" replaced with your own identifying
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# information: Portions Copyright [yyyy] [name of copyright owner]
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# CDDL HEADER END
5ad278af38ea0c2eb5e449328cbb7c29f86e5965Phill Cunnington#
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington#
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# Use is subject to license terms.
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# This makefile drives the production of the kernel SSL driver
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# kernel module.
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# intel architecture dependent
4aa2bc2779a92691d5c66593fdbdaa96ed663e6fPhill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington
9c66fb67f2ad1de61c12a43db588e58e0fd67e57Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# Path to the base of the uts directory tree (usually /usr/src/uts).
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill CunningtonUTSBASE = ../..
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington#
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington# Define the module and object file sets.
2dffe047d982828750ee6d5e2bda32caee3de522Phill Cunnington#
2dffe047d982828750ee6d5e2bda32caee3de522Phill CunningtonMODULE = kssl
2dffe047d982828750ee6d5e2bda32caee3de522Phill CunningtonOBJECTS = $(KSSL_OBJS:%=$(OBJS_DIR)/%)
4a029e70f735f97925ee27e4de6d7dbea88bd6c9Phill CunningtonLINTS = $(KSSL_OBJS:%.o=$(LINTS_DIR)/%.ln)
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill CunningtonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonCONF_SRCDIR = $(UTSBASE)/common/inet/kssl
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# Include common rules.
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtoninclude $(UTSBASE)/intel/Makefile.intel
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# Define targets
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonALL_TARGET = $(BINARY) $(SRC_CONFFILE)
7101d14ca54351f3908b64b0459eb4293359cceaPhill CunningtonLINT_TARGET = $(MODULE).lint
5ad278af38ea0c2eb5e449328cbb7c29f86e5965Phill CunningtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
9c66fb67f2ad1de61c12a43db588e58e0fd67e57Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonLDFLAGS += -dy -Nmisc/md5 -Nmisc/kcf
9c66fb67f2ad1de61c12a43db588e58e0fd67e57Phill Cunnington
5ad278af38ea0c2eb5e449328cbb7c29f86e5965Phill Cunnington#
7101d14ca54351f3908b64b0459eb4293359cceaPhill Cunnington# For now, disable these lint checks; maintainers should endeavor
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# to investigate and remove these for maximum lint coverage.
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# Please do not carry these forward to new Makefiles.
5ad278af38ea0c2eb5e449328cbb7c29f86e5965Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill CunningtonLINTTAGS += -erroff=E_STATIC_UNUSED
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill CunningtonCERRWARN += -_gcc=-Wno-uninitialized
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# Default build targets.
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington.KEEP_STATE:
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunningtondef: $(DEF_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
7de0b02ea333f0df1acdce59cfb943fd3c37e940Phill Cunningtonall: $(ALL_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonclean: $(CLEAN_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonclobber: $(CLOBBER_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonlint: $(LINT_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonmodlintlib: $(MODLINTLIB_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonclean.lint: $(CLEAN_LINT_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtoninstall: $(INSTALL_DEPS)
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington# Include common targets.
a093731116a8c24d49b903df7602cf586e499b45Phill Cunnington#
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtoninclude $(UTSBASE)/intel/Makefile.targ
7d913105ec337bcaecd2660e1de11313cff83373Phill Cunnington