Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# CDDL HEADER START
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# The contents of this file are subject to the terms of the
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Common Development and Distribution License (the "License").
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# You may not use this file except in compliance with the License.
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# See the License for the specific language governing permissions
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# and limitations under the License.
34ce5c2f0e9b0f6bf05895501c9f7171d4a5bab7Lubos Kosco# When distributing Covered Code, include this CDDL HEADER in each
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# If applicable, add the following below this CDDL HEADER, with the
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# fields enclosed by brackets "[]" replaced with your own identifying
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# information: Portions Copyright [yyyy] [name of copyright owner]
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# CDDL HEADER END
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Use is subject to license terms.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#ident "%Z%%M% %I% %E% SMI"
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# This makefile drives the production of the ip driver
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# kernel module.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# sparc architecture dependent
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Path to the base of the uts directory tree (usually /usr/src/uts).
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco# Define the module and object file sets.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Include common rules.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Define targets
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# lint pass one enforcement
05697f2a7c396f7599ba8963ab8179775db4e436Lubos Kosco# For now, disable these lint checks; maintainers should endeavor
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco# to investigate and remove these for maximum lint coverage.
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco# Please do not carry these forward to new Makefiles.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
37187cd476e30232cba3afb116e079cb640f984eLubos Kosco# Depends on md5 and swrand (for SCTP). SCTP needs to depend on
37187cd476e30232cba3afb116e079cb640f984eLubos Kosco# swrand as it needs random numbers early on during boot before
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# kCF subsystem can load swrand.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoLDFLAGS += -dy -Nmisc/md5 -Ncrypto/swrand -Nmisc/hook -Nmisc/neti
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Default build targets.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Include common targets.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# The ip CTF data is merged into the genunix module because these types are
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# complex and heavily shared. The genunix build will execute one of the
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# rules below to create an archive, ipctf.a, containing the ip objects. The
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# real ip will be uniquified against genunix later in the build, and will
-$(RM) $@