Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# CDDL HEADER START
724df78acd95dc0f313bc2b80a099f7ecd48b620Tinderbox User#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# The contents of this file are subject to the terms of the
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Common Development and Distribution License (the "License").
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# You may not use this file except in compliance with the License.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# or http://www.opensolaris.org/os/licensing.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# See the License for the specific language governing permissions
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# and limitations under the License.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# CDDL HEADER END
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# uts/sparc/nfs_dlboot/Makefile
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
dbb012765c735ee0d82dedb116cdc7cf18957814Evan Hunt# Use is subject to license terms.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#ident "%Z%%M% %I% %E% SMI"
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# This makefile drives the production of the dlboot_proto
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# kernel module.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# sparc architecture dependent
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsUTSBASE = ../..
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOM_DIR = $(SRC)/common/net/dhcp
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Define the module and object file sets.
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt#
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntMODULE = nfs_dlboot
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsOBJECTS = $(DLBOOT_OBJS:%=$(OBJS_DIR)/%)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINTS = $(DLBOOT_OBJS:%.o=$(LINTS_DIR)/%.ln)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Include common rules.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Define targets
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsALL_TARGET = $(BINARY)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINT_TARGET = $(MODULE).lint
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Overrides.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCFLAGS += $(CCVERBOSE) -I$(COM_DIR)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINTFLAGS += -I$(COM_DIR)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLDFLAGS += -dy -Nmisc/strplumb -Nstrmod/rpcmod
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# For now, disable these lint checks; maintainers should endeavor
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# to investigate and remove these for maximum lint coverage.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Please do not carry these forward to new Makefiles.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Default build targets.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt.KEEP_STATE:
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsdef: $(DEF_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsall: $(ALL_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsclean: $(CLEAN_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsclobber: $(CLOBBER_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewslint: $(LINT_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
1059bc2e42e8214f8b73d3b4cd181d8394a94a6aFrancis Dupont
1059bc2e42e8214f8b73d3b4cd181d8394a94a6aFrancis Dupontinstall: $(INSTALL_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Include common targets.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews