2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy is of the CDDL is also available via the Internet
9 # at http://www.illumos.org/license/CDDL.
13 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
14 # Copyright (c) 2012 by Delphix. All rights reserved.
17 include ..
/..
/..
/Makefile.master
19 NLM_PROT_X
= ..
/rpcsvc
/nlm_prot.x
20 SM_INTER_X
= ..
/rpcsvc
/sm_inter.x
21 NSM_ADDR_X
= ..
/rpcsvc
/nsm_addr.x
23 RPCGENFLAGS
= -C
-M
-i
0
24 SED_INCL
='/^.include/s:\.\..*/rpcsvc:rpcsvc:'
26 DERIVED_FILES
= nlm_prot_clnt.c nlm_prot_xdr.c \
27 sm_inter_clnt.c sm_inter_xdr.c \
28 nsm_addr_clnt.c nsm_addr_xdr.c
32 all_h
: $(DERIVED_FILES
)
34 nlm_prot_clnt.c
: $(NLM_PROT_X
) nlm_prot_clnt.sed
35 $(RPCGEN
) $(RPCGENFLAGS
) -l
-o
$@.tmp
$(NLM_PROT_X
)
36 sed
-f nlm_prot_clnt.sed
< $@.tmp
> $@
39 nlm_prot_xdr.c
: $(NLM_PROT_X
)
40 $(RPCGEN
) $(RPCGENFLAGS
) -c
-o
$@.tmp
$(NLM_PROT_X
)
41 sed
-e
$(SED_INCL
) < $@.tmp
> $@
44 sm_inter_clnt.c
: $(SM_INTER_X
) sm_inter_clnt.sed
45 $(RPCGEN
) $(RPCGENFLAGS
) -l
-o
$@.tmp
$(SM_INTER_X
)
46 sed
-f sm_inter_clnt.sed
< $@.tmp
> $@
49 sm_inter_xdr.c
: $(SM_INTER_X
)
50 $(RPCGEN
) $(RPCGENFLAGS
) -c
-o
$@.tmp
$(SM_INTER_X
)
51 sed
-e
$(SED_INCL
) < $@.tmp
> $@
54 nsm_addr_clnt.c
: $(NSM_ADDR_X
) nsm_addr_clnt.sed
55 $(RPCGEN
) $(RPCGENFLAGS
) -l
-o
$@.tmp
$(NSM_ADDR_X
)
56 sed
-f nsm_addr_clnt.sed
< $@.tmp
> $@
59 nsm_addr_xdr.c
: $(NSM_ADDR_X
)
60 $(RPCGEN
) $(RPCGENFLAGS
) -c
-o
$@.tmp
$(NSM_ADDR_X
)
61 sed
-e
$(SED_INCL
) < $@.tmp
> $@
67 $(RM
) $(DERIVED_FILES
)