Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
0N/A#
31N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
87N/A#
0N/A# This makefile drives the production of the ip driver
0N/A# kernel module.
0N/A#
0N/A# sparc architecture dependent
0N/A#
0N/A
0N/A#
0N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
0N/A#
0N/AUTSBASE = ../..
0N/A
0N/A#
0N/A# Define the module and object file sets.
0N/A#
0N/AMODULE = ip
0N/AOBJECTS = $(IP_OBJS:%=$(OBJS_DIR)/%)
0N/ALINTS = $(IP_OBJS:%.o=$(LINTS_DIR)/%.ln)
87N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
87N/AROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
0N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ip
0N/A
0N/A#
0N/A# Include common rules.
0N/A#
0N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
0N/A
0N/A#
0N/A# Define targets
0N/A#
0N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
0N/ALINT_TARGET = $(MODULE).lint
87N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
59N/A
59N/A#
59N/A# lint pass one enforcement
59N/A#
59N/ACFLAGS += $(CCVERBOSE)
59N/ACFLAGS += -xinline=tcp_set_ws_value
59N/A
59N/A#
0N/A# For now, disable these lint checks; maintainers should endeavor
87N/A# to investigate and remove these for maximum lint coverage.
87N/A# Please do not carry these forward to new Makefiles.
87N/A#
87N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
87N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
87N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
87N/ALINTTAGS += -erroff=E_STATIC_UNUSED
87N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0N/A
87N/A#
87N/A# Depends on md5 and swrand (for SCTP). SCTP needs to depend on
87N/A# swrand as it needs random numbers early on during boot before
87N/A# kCF subsystem can load swrand.
87N/A#
87N/ALDFLAGS += -dy -Nmisc/md5 -Ncrypto/swrand -Nmisc/hook -Nmisc/neti
87N/A
87N/A#
87N/A# Default build targets.
87N/A#
87N/A.KEEP_STATE:
96N/A
96N/Adef: $(DEF_DEPS)
96N/A
96N/Aall: $(ALL_DEPS)
96N/A
96N/Aclean: $(CLEAN_DEPS)
87N/A
96N/Aclobber: $(CLOBBER_DEPS)
96N/A
96N/Alint: $(LINT_DEPS)
96N/A
96N/Amodlintlib: $(MODLINTLIB_DEPS)
87N/A
87N/Aclean.lint: $(CLEAN_LINT_DEPS)
96N/A
96N/Ainstall: $(INSTALL_DEPS)
87N/A
0N/A$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
0N/A -$(RM) $@; ln $(ROOTMODULE) $@
87N/A
0N/A#
0N/A# Include common targets.
0N/A#
0N/Ainclude $(UTSBASE)/sparc/Makefile.targ
0N/A
87N/A#
87N/A# The ip CTF data is merged into the genunix module because these types are
87N/A# complex and heavily shared. The genunix build will execute one of the
0N/A# rules below to create an archive, ipctf.a, containing the ip objects. The
87N/A# real ip will be uniquified against genunix later in the build, and will
87N/A# emerge containing very few types.
87N/A#
87N/A$(OBJS_DIR)/ipctf.a: $(OBJECTS)
0N/A -$(RM) $@
0N/A $(AR) -r $@ $(OBJECTS)
0N/A
0N/A$(OBJECTS): $(OBJS_DIR)
0N/A
0N/ACLOBBERFILES += $(OBJS_DIR)/ipctf.a
0N/A
0N/Aipctf.obj64: FRC
0N/A @BUILD_TYPE=OBJ64 VERSION='$(VERSION)' $(MAKE) obj64/ipctf.a
0N/A
0N/Aipctf.debug64: FRC
0N/A @BUILD_TYPE=DBG64 VERSION='$(VERSION)' $(MAKE) debug64/ipctf.a
0N/A