Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
9384cec630155c229c70dfb8a445c6ccf433045aJohann 'Myrkraverk' Oskarsson# CDDL HEADER START
d15978eab6c23a98f0a5474466d5fe9b1be3ca9bGary Mills#
e50226eccc6dfcba3cc6f0df38438900e3df225cYuri Pankov# The contents of this file are subject to the terms of the
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Common Development and Distribution License (the "License").
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# You may not use this file except in compliance with the License.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# See the License for the specific language governing permissions
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# and limitations under the License.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# CDDL HEADER END
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# uts/intel/autofs/Makefile
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Use is subject to license terms.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# This makefile drives the production of the autofs file system
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# kernel module.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# intel architecture dependent
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreUTSBASE = ../..
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Define the module and object file sets.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreMODULE = autofs
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreOBJECTS = $(AUTOFS_OBJS:%=$(OBJS_DIR)/%)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLINTS = $(AUTOFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
e50226eccc6dfcba3cc6f0df38438900e3df225cYuri PankovROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreROOTLINK = $(ROOT_SYS_DIR)/$(MODULE)
e50226eccc6dfcba3cc6f0df38438900e3df225cYuri Pankov
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Include common rules.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Define targets
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreALL_TARGET = $(BINARY)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLINT_TARGET = $(MODULE).lint
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Define dependency on rpcmod, rpcsec, and mntfs
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLDFLAGS += -dy -N strmod/rpcmod -N misc/rpcsec -N fs/mntfs
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# For now, disable these lint checks; maintainers should endeavor
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# to investigate and remove these for maximum lint coverage.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Please do not carry these forward to new Makefiles.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLINTTAGS += -erroff=E_STATIC_UNUSED
84441f85b19f6b8080883f30109e58e43c893709Garrett D'AmoreLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Default build targets.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore.KEEP_STATE:
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoredef: $(DEF_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreall: $(ALL_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreclean: $(CLEAN_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreclobber: $(CLOBBER_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amorelint: $(LINT_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreinstall: $(INSTALL_DEPS)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore$(ROOTLINK): $(ROOT_SYS_DIR) $(ROOTMODULE)
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore -$(RM) $@; ln $(ROOTMODULE) $@
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore# Include common targets.
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore#
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
84441f85b19f6b8080883f30109e58e43c893709Garrett D'Amore