Makefile revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
1553N/A#
1553N/A# CDDL HEADER START
1553N/A#
1553N/A# The contents of this file are subject to the terms of the
1553N/A# Common Development and Distribution License (the "License").
1553N/A# You may not use this file except in compliance with the License.
1553N/A#
1553N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1553N/A# or http://www.opensolaris.org/os/licensing.
1553N/A# See the License for the specific language governing permissions
1553N/A# and limitations under the License.
1553N/A#
1553N/A# When distributing Covered Code, include this CDDL HEADER in each
1553N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1553N/A# If applicable, add the following below this CDDL HEADER, with the
1553N/A# fields enclosed by brackets "[]" replaced with your own identifying
1553N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1553N/A#
1553N/A# CDDL HEADER END
1553N/A#
2321N/A#
1553N/A# uts/sparc/keysock/Makefile
1553N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1553N/A# Use is subject to license terms.
1553N/A#
1553N/A# ident "%Z%%M% %I% %E% SMI"
1553N/A#
1553N/A# This makefile drives the production of the spdsock driver
1553N/A# kernel module.
1553N/A#
1553N/A# sparc architecture dependent
1553N/A#
1553N/A
1553N/A#
1553N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1553N/A#
1553N/AUTSBASE = ../..
1553N/A
1553N/A#
1553N/A# Define the module and object file sets.
1553N/A#
2232N/AMODULE = spdsock
1553N/AOBJECTS = $(SPDSOCK_OBJS:%=$(OBJS_DIR)/%)
1553N/ALINTS = $(SPDSOCK_OBJS:%.o=$(LINTS_DIR)/%.ln)
1553N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1553N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ip
1553N/A
1553N/A#
1553N/A# Include common rules.
1553N/A#
1553N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1553N/A
1553N/A#
1553N/A# Define targets
1553N/A#
1553N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1553N/ALINT_TARGET = $(MODULE).lint
1553N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
1553N/A
1553N/A#
1553N/A# Linkage dependencies
1553N/A#
1553N/ALDFLAGS += -dy -Ndrv/ip
1553N/A
1553N/A#
1553N/A# lint pass one enforcement
1553N/A#
CFLAGS += $(CCVERBOSE)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
sis_check: sis_check.obj
sis_check.obj: $(ALL_DEPS)
@$(GREP) -v '#' $(MODULE).objt-symbols.obj64 |$(GREP) . |$(SORT) -u \
> $(MODULE).symbols.tmp
@$(NM) obj64/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \
$(CUT) -d'|' -f8 |$(GREP) -v '^___const_' |$(SORT) -u \
> $(MODULE).symbols.tmp.new
-@$(DIFF) $(MODULE).symbols.tmp $(MODULE).symbols.tmp.new
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ