xref: /titanic_51/usr/src/uts/common/nfs/Makefile (revision 05b96de272314c66a0e27fe7df41c9a9e1038c5a)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# uts/common/nfs/Makefile
29#
30# include global definitions
31#
32include ../../../Makefile.master
33
34HDRS=	export.h	lm.h						\
35	mount.h		nfs.h		nfssys.h	nfs_acl.h	\
36	nfs_clnt.h	nfs_log.h 	nfs_sec.h	nfs4.h		\
37	nfs4_attr.h	nfs4_clnt.h	rnode.h		rnode4.h	\
38	nfs4_kprot.h	nfs4_db_impl.h	nfs4_idmap_impl.h \
39	nfsid_map.h
40
41$(CLOSED_BUILD)CLOSEDHDRS=	lm_impl.h	lm_nlm.h	lm_server.h
42
43ALLHDRS= $(HDRS) $(CLOSEDHDRS)
44
45ROOTDIRS= $(ROOT)/usr/include/nfs
46
47ROOTHDRS= $(ALLHDRS:%=$(ROOTDIRS)/%)
48
49CHECKHDRS= $(HDRS:%.h=%.check) \
50	$(CLOSEDHDRS:%.h=$(CLOSED)/uts/common/nfs/%.check)
51
52$(ROOTDIRS)/%: %
53	$(INS.file)
54
55$(ROOTDIRS)/%: $(CLOSED)/uts/common/nfs/%
56	$(INS.file)
57
58.KEEP_STATE:
59
60.PARALLEL: $(CHECKHDRS)
61
62install_h: $(ROOTDIRS) $(ROOTHDRS)
63
64$(ROOTDIRS):
65	$(INS.dir)
66
67check:	$(CHECKHDRS)
68