b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# CDDL HEADER START
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# The contents of this file are subject to the terms of the
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Common Development and Distribution License (the "License").
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# You may not use this file except in compliance with the License.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# See the License for the specific language governing permissions
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# and limitations under the License.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# When distributing Covered Code, include this CDDL HEADER in each
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# If applicable, add the following below this CDDL HEADER, with the
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# CDDL HEADER END
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Use is subject to license terms.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
7b07063d906859b2be1e88791f801b3c96e432f6Igor Kozhukhov# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Path to the base of the uts directory tree (usually /usr/src/uts).
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Include common rules.
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross $(RPCGEN) $(RPCGENFLAGS) -c -i 100 $(MD_XDR_XSRC)/$*.x | \
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross sub(/(\.\.\/)*common\//,"");\
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross{ print $0; }' > $@