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