xref: /onnv-gate/usr/src/uts/intel/nfs/Makefile (revision 5314:8895754e4303)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
53066Sjg# Common Development and Distribution License (the "License").
63066Sjg# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
220Sstevel@tonic-gate# uts/intel/nfs/Makefile
230Sstevel@tonic-gate#
24*5302Sth199096# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate# Use is subject to license terms.
260Sstevel@tonic-gate#
273066Sjg#ident	"%Z%%M%	%I%	%E% SMI"
280Sstevel@tonic-gate#
290Sstevel@tonic-gate#	This makefile drives the production of the nfs file system
300Sstevel@tonic-gate#	kernel module.
310Sstevel@tonic-gate#
320Sstevel@tonic-gate#	intel implementation architecture dependent
330Sstevel@tonic-gate#
340Sstevel@tonic-gate
350Sstevel@tonic-gate#
360Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
370Sstevel@tonic-gate#
380Sstevel@tonic-gateUTSBASE	= ../..
390Sstevel@tonic-gate
400Sstevel@tonic-gate#
410Sstevel@tonic-gate#	Define the module and object file sets.
420Sstevel@tonic-gate#
430Sstevel@tonic-gateMODULE		= nfs
440Sstevel@tonic-gateOBJECTS		= $(NFS_OBJS:%=$(OBJS_DIR)/%)
450Sstevel@tonic-gateLINTS		= $(NFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
460Sstevel@tonic-gateROOTMODULE	= $(ROOT_FS_DIR)/$(MODULE)
470Sstevel@tonic-gateROOTLINK	= $(ROOT_SYS_DIR)/$(MODULE)
480Sstevel@tonic-gate
490Sstevel@tonic-gate#
500Sstevel@tonic-gate#	Include common rules.
510Sstevel@tonic-gate#
520Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel
530Sstevel@tonic-gate
540Sstevel@tonic-gate#
550Sstevel@tonic-gate#	Define targets
560Sstevel@tonic-gate#
570Sstevel@tonic-gateALL_TARGET	= $(BINARY)
580Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
590Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
600Sstevel@tonic-gate
610Sstevel@tonic-gate#
620Sstevel@tonic-gate#	Overrides.
630Sstevel@tonic-gate#
640Sstevel@tonic-gateMODSTUBS_DIR	 = $(OBJS_DIR)
650Sstevel@tonic-gate$(MODSTUBS_O)	:= AS_CPPFLAGS += -DNFS_MODULE
660Sstevel@tonic-gateCLEANFILES	+= $(MODSTUBS_O)
670Sstevel@tonic-gate
680Sstevel@tonic-gate#
693066Sjg# For now, disable these lint checks; maintainers should endeavor
703066Sjg# to investigate and remove these for maximum lint coverage.
713066Sjg# Please do not carry these forward to new Makefiles.
723066Sjg#
733066SjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
743066SjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
753066SjgLINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
763066SjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
773066SjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
783066SjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
793066Sjg
803066Sjg#
810Sstevel@tonic-gate#	Default build targets.
820Sstevel@tonic-gate#
830Sstevel@tonic-gate.KEEP_STATE:
840Sstevel@tonic-gate
850Sstevel@tonic-gatedef:		$(DEF_DEPS)
860Sstevel@tonic-gate
870Sstevel@tonic-gateall:		$(ALL_DEPS)
880Sstevel@tonic-gate
890Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
900Sstevel@tonic-gate
910Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
920Sstevel@tonic-gate
930Sstevel@tonic-gatelint:		$(LINT_DEPS)
940Sstevel@tonic-gate
950Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
960Sstevel@tonic-gate
970Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
980Sstevel@tonic-gate
990Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
1000Sstevel@tonic-gate
1010Sstevel@tonic-gate$(ROOTLINK):	$(ROOT_SYS_DIR) $(ROOTMODULE)
1020Sstevel@tonic-gate	-$(RM) $@; ln $(ROOTMODULE) $@
1030Sstevel@tonic-gate
1040Sstevel@tonic-gate#
1050Sstevel@tonic-gate#	Include common targets.
1060Sstevel@tonic-gate#
1070Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ
108