Makefile revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or http://www.opensolaris.org/os/licensing.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# uts/sparc/keysock/Makefile
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This makefile drives the production of the spdsock driver
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# kernel module.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott# sparc architecture dependent
1f7d36d655f5d4d021b4dd67ca200ac503f5a25ePeter Major#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Path to the base of the uts directory tree (usually /usr/src/uts).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterUTSBASE = ../..
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Define the module and object file sets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterMODULE = spdsock
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJECTS = $(SPDSOCK_OBJS:%=$(OBJS_DIR)/%)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTS = $(SPDSOCK_OBJS:%.o=$(LINTS_DIR)/%.ln)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONF_SRCDIR = $(UTSBASE)/common/inet/ip
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Include common rules.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshottinclude $(UTSBASE)/sparc/Makefile.sparc
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott#
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott# Define targets
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterALL_TARGET = $(BINARY) $(SRC_CONFFILE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINT_TARGET = $(MODULE).lint
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Linkage dependencies
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLDFLAGS += -dy -Ndrv/ip
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Overrides
1f7d36d655f5d4d021b4dd67ca200ac503f5a25ePeter Major#
1f7d36d655f5d4d021b4dd67ca200ac503f5a25ePeter MajorINC_PATH += -I$(UTSBASE)/common/io/bpf
1f7d36d655f5d4d021b4dd67ca200ac503f5a25ePeter Major
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# lint pass one enforcement
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCFLAGS += $(CCVERBOSE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# For now, disable these lint checks; maintainers should endeavor
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to investigate and remove these for maximum lint coverage.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Please do not carry these forward to new Makefiles.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Default build targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster.KEEP_STATE:
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott
7ceb1915fe31e2cde224bba1255b4b948ce7c61dRobert Wapshottdef: $(DEF_DEPS)
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshottall: $(ALL_DEPS) $(SISCHECK_DEPS)
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshott
71ef1e179613c2e17b9ad5f1c9db6bf533941f9dRobert Wapshottclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterlint: $(LINT_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostermodlintlib: $(MODLINTLIB_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean.lint: $(CLEAN_LINT_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Include common targets.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(UTSBASE)/sparc/Makefile.targ
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster