xref: /illumos-gate/usr/src/uts/common/idmap/Makefile (revision 148c5f43)
1c5c4113dSnw#
2c5c4113dSnw# CDDL HEADER START
3c5c4113dSnw#
4c5c4113dSnw# The contents of this file are subject to the terms of the
5c5c4113dSnw# Common Development and Distribution License (the "License").
6c5c4113dSnw# You may not use this file except in compliance with the License.
7c5c4113dSnw#
8c5c4113dSnw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c5c4113dSnw# or http://www.opensolaris.org/os/licensing.
10c5c4113dSnw# See the License for the specific language governing permissions
11c5c4113dSnw# and limitations under the License.
12c5c4113dSnw#
13c5c4113dSnw# When distributing Covered Code, include this CDDL HEADER in each
14c5c4113dSnw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c5c4113dSnw# If applicable, add the following below this CDDL HEADER, with the
16c5c4113dSnw# fields enclosed by brackets "[]" replaced with your own identifying
17c5c4113dSnw# information: Portions Copyright [yyyy] [name of copyright owner]
18c5c4113dSnw#
19c5c4113dSnw# CDDL HEADER END
20c5c4113dSnw#
21*148c5f43SAlan Wright# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
22c5c4113dSnw#
23c5c4113dSnw#
24c5c4113dSnw# uts/common/idmap/Makefile
25c5c4113dSnw#
26c5c4113dSnw# include global definitions
27c5c4113dSnwinclude ../../../Makefile.master
28c5c4113dSnw
299b214d32SJordan BrownIDMAP_PROT_DIR= 	$(SRC)/uts/common/rpcsvc
30c5c4113dSnw
31c5c4113dSnwIDMAP_PROT_X=		$(IDMAP_PROT_DIR)/idmap_prot.x
32c5c4113dSnwDERIVED_SRCS=		idmap_xdr.c
339b214d32SJordan BrownDERIVED_FILES=		$(DERIVED_SRCS)
34c5c4113dSnwHDRS=			kidmap_priv.h
35c5c4113dSnwCHECKHDRS=		$(HDRS:%.h=%.check)
36c5c4113dSnw
37c5c4113dSnw.KEEP_STATE:
38c5c4113dSnw
39c5c4113dSnw.PARALLEL: $(CHECKHDRS)
40c5c4113dSnw
41c5c4113dSnwinstall_h: all_h
42c5c4113dSnw
43c5c4113dSnwall_h: $(DERIVED_FILES)
44c5c4113dSnw
45c5c4113dSnw
46c5c4113dSnwidmap_xdr.c:	$(IDMAP_PROT_X)
47c5c4113dSnw	$(RM) $@
48*148c5f43SAlan Wright	$(RPCGEN) -CMNc -DIDMAP_XDR_MAPPING_ONLY -o $@ $(IDMAP_PROT_X)
49c5c4113dSnw
50c5c4113dSnwcheck:	$(CHECKHDRS)
51c5c4113dSnw
52c5c4113dSnwclean:
53c5c4113dSnw	$(RM) $(DERIVED_FILES)
549b214d32SJordan Brown
559b214d32SJordan Brownclobber:	clean
56