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