Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
99653d4ee642c6528e88224f12409a5f23060994eschrock#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# uts/sparc/cachefs/Makefile
5679c89fcd2facbb4334df8870d3d7a4d2b11673jv# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# This makefile drives the production of the Cache file system
fa9e4066f08beec538e775443c5be79dd423fcabahrens# kernel module.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# sparc implementation architecture dependent
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
95173954d2b811ceb583a9012c3b16e1d0dd6438ek#
95173954d2b811ceb583a9012c3b16e1d0dd6438ek# Path to the base of the uts directory tree (usually /usr/src/uts).
95173954d2b811ceb583a9012c3b16e1d0dd6438ek#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockUTSBASE = ../..
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
5679c89fcd2facbb4334df8870d3d7a4d2b11673jv#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Define the module and object file sets.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
fa9e4066f08beec538e775443c5be79dd423fcabahrensMODULE = cachefs
fa9e4066f08beec538e775443c5be79dd423fcabahrensOBJECTS = $(CACHEFS_OBJS:%=$(OBJS_DIR)/%)
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTS = $(CACHEFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrockROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock#
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock# Include common rules.
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock#
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude $(UTSBASE)/sparc/Makefile.sparc
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock#
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock# Define targets
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock#
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrockALL_TARGET = $(BINARY)
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrockLINT_TARGET = $(MODULE).lint
fa9e4066f08beec538e775443c5be79dd423fcabahrensINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Overrides.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensCFLAGS += $(CCVERBOSE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
c5904d138f3bdf0762dbf452a43d5a5c387ea6a8eschrock# For now, disable these lint checks; maintainers should endeavor
fa9e4066f08beec538e775443c5be79dd423fcabahrens# to investigate and remove these for maximum lint coverage.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Please do not carry these forward to new Makefiles.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_STATIC_UNUSED
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Default build targets.
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwick#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock.KEEP_STATE:
b1b8ab34de515a5e83206da22c3d7e563241b021lling
fa9e4066f08beec538e775443c5be79dd423fcabahrensdef: $(DEF_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensall: $(ALL_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwickclean: $(CLEAN_DEPS)
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwick
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwickclobber: $(CLOBBER_DEPS)
c5904d138f3bdf0762dbf452a43d5a5c387ea6a8eschrock
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrocklint: $(LINT_DEPS)
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwickmodlintlib: $(MODLINTLIB_DEPS)
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwick
e14bb3258d05c1b1077e2db7cf77088924e56919Jeff Bonwickclean.lint: $(CLEAN_LINT_DEPS)
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
fa9e4066f08beec538e775443c5be79dd423fcabahrensinstall: $(INSTALL_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
b1b8ab34de515a5e83206da22c3d7e563241b021lling#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Include common targets.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
b1b8ab34de515a5e83206da22c3d7e563241b021llinginclude $(UTSBASE)/sparc/Makefile.targ
fa9e4066f08beec538e775443c5be79dd423fcabahrens