Makefile revision 3066:2a2af34f0642
1285SN/A#
2462SN/A# CDDL HEADER START
3285SN/A#
4285SN/A# The contents of this file are subject to the terms of the
5285SN/A# Common Development and Distribution License (the "License").
6285SN/A# You may not use this file except in compliance with the License.
7285SN/A#
8285SN/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9285SN/A# or http://www.opensolaris.org/os/licensing.
10285SN/A# See the License for the specific language governing permissions
11285SN/A# and limitations under the License.
12285SN/A#
13285SN/A# When distributing Covered Code, include this CDDL HEADER in each
14285SN/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15285SN/A# If applicable, add the following below this CDDL HEADER, with the
16285SN/A# fields enclosed by brackets "[]" replaced with your own identifying
17285SN/A# information: Portions Copyright [yyyy] [name of copyright owner]
18285SN/A#
19285SN/A# CDDL HEADER END
20285SN/A#
21285SN/A#
22285SN/A# uts/intel/nfs/Makefile
23285SN/A#
24285SN/A# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25285SN/A# Use is subject to license terms.
26285SN/A#
27285SN/A#ident	"%Z%%M%	%I%	%E% SMI"
28285SN/A#
29285SN/A#	This makefile drives the production of the nfs file system
30285SN/A#	kernel module.
31285SN/A#
32285SN/A#	intel implementation architecture dependent
33285SN/A#
34285SN/A
35285SN/A#
36285SN/A#	Path to the base of the uts directory tree (usually /usr/src/uts).
37285SN/A#
38285SN/AUTSBASE	= ../..
39285SN/A
40285SN/A#
41285SN/A#	Define the module and object file sets.
42285SN/A#
43285SN/AMODULE		= nfs
44285SN/AOBJECTS		= $(NFS_OBJS:%=$(OBJS_DIR)/%)
45285SN/ALINTS		= $(NFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
46285SN/AROOTMODULE	= $(ROOT_FS_DIR)/$(MODULE)
47285SN/AROOTLINK	= $(ROOT_SYS_DIR)/$(MODULE)
48285SN/A
49285SN/A#
50285SN/A#	Include common rules.
51285SN/A#
52285SN/Ainclude $(UTSBASE)/intel/Makefile.intel
53285SN/A
54285SN/A#
55285SN/A#	Define targets
56285SN/A#
57285SN/AALL_TARGET	= $(BINARY)
58285SN/ALINT_TARGET	= $(MODULE).lint
59285SN/AINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
60285SN/A
61285SN/A#
62285SN/A#	Overrides.
63285SN/A#
64285SN/AMODSTUBS_DIR	 = $(OBJS_DIR)
65285SN/A$(MODSTUBS_O)	:= AS_CPPFLAGS += -DNFS_MODULE
66285SN/ACLEANFILES	+= $(MODSTUBS_O)
67285SN/A
68285SN/A#
69285SN/A# For now, disable these lint checks; maintainers should endeavor
70285SN/A# to investigate and remove these for maximum lint coverage.
71285SN/A# Please do not carry these forward to new Makefiles.
72285SN/A#
73285SN/ALINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
74285SN/ALINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
75285SN/ALINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
76285SN/ALINTTAGS	+= -erroff=E_STATIC_UNUSED
77285SN/ALINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
78285SN/ALINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
79285SN/A
80285SN/A#
81285SN/A#	Default build targets.
82285SN/A#
83285SN/A.KEEP_STATE:
84285SN/A
85285SN/Adef:		$(DEF_DEPS)
86285SN/A
87285SN/Aall:		$(ALL_DEPS)
88285SN/A
89285SN/Aclean:		$(CLEAN_DEPS)
90
91clobber:	$(CLOBBER_DEPS)
92
93lint:		$(LINT_DEPS)
94
95modlintlib:	$(MODLINTLIB_DEPS)
96
97clean.lint:	$(CLEAN_LINT_DEPS)
98
99install:	$(INSTALL_DEPS)
100
101$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
102	-$(RM) $@; ln $(ROOTMODULE) $@
103
104#
105#	Include common targets.
106#
107include $(UTSBASE)/intel/Makefile.targ
108