xref: /illumos-gate/usr/src/uts/common/idmap/Makefile (revision 598f4ceed9327d2d6c2325dd67cae3aa06f7fea6)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
22#
23#
24# uts/common/idmap/Makefile
25#
26# include global definitions
27include ../../../Makefile.master
28
29IDMAP_PROT_DIR= 	$(SRC)/uts/common/rpcsvc
30
31IDMAP_PROT_X=		$(IDMAP_PROT_DIR)/idmap_prot.x
32DERIVED_SRCS=		idmap_xdr.c
33DERIVED_FILES=		$(DERIVED_SRCS)
34HDRS=			kidmap_priv.h
35CHECKHDRS=		$(HDRS:%.h=%.check)
36
37.KEEP_STATE:
38
39.PARALLEL: $(CHECKHDRS)
40
41install_h: all_h
42
43all_h: $(DERIVED_FILES)
44
45
46idmap_xdr.c:	$(IDMAP_PROT_X)
47	$(RM) $@
48	$(RPCGEN) -CMNc -DIDMAP_XDR_MAPPING_ONLY -o $@ $(IDMAP_PROT_X)
49
50check:	$(CHECKHDRS)
51
52clean:
53	$(RM) $(DERIVED_FILES)
54
55clobber:	clean
56