Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
32098293b78922a5fbd10906afa28624820d3756Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# uts/sparc/hsfs/Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the hsfs file system
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# kernel module.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# sparc architecture dependent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntUTSBASE = ../..
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0b89eee6167201843c9a46b7e7c63cb1e4e09ba3Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define the module and object file sets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMODULE = hsfs
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox UserOBJECTS = $(HSFS_OBJS:%=$(OBJS_DIR)/%)
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox UserLINTS = $(HSFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
3ca1a32241189d1e02e59f6b56399eb9b40f2aafTinderbox UserROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
bfb7b680bf88c1fdd9949197b71c512c532280a4Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include common rules.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserALL_TARGET = $(BINARY)
f9ce6280cec79deb16ff6d9807aa493ff23e10d9Tinderbox UserLINT_TARGET = $(MODULE).lint
0b89eee6167201843c9a46b7e7c63cb1e4e09ba3Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Overrides.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCFLAGS += $(CCVERBOSE)
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User# For now, disable these lint checks; maintainers should endeavor
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User# to investigate and remove these for maximum lint coverage.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Please do not carry these forward to new Makefiles.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTTAGS += -erroff=E_STATIC_UNUSED
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Default build targets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt.KEEP_STATE:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userdef: $(DEF_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntall: $(ALL_DEPS)
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userclean: $(CLEAN_DEPS)
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userclobber: $(CLOBBER_DEPS)
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userlint: $(LINT_DEPS)
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userinstall: $(INSTALL_DEPS)
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User#
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User# Include common targets.
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox User#
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox Userinclude $(UTSBASE)/sparc/Makefile.targ
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox User