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