5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # uts/common/rpcsvc/Makefile
26 # This makefile installs system header files that go into
27 # /usr/include/rpcsvc.
28 #
29 # include global definitions
30 include ../../../Makefile.master
31
32 # Protocol descriptions. Alas, the NFS protocol cannot be expressed
33 # completely via rpcgen. The NLM description should go here some day.
34 # Also, the v3 headers have been hacked so that they no longer
35 # quite reflect what goes over the wire.
36 IDMAP_PROT_X= idmap_prot.x
37 RPCGEN_SRC= autofs_prot.x sm_inter.x nsm_addr.x $(IDMAP_PROT_X)
38
39 DERIVED_HDRS= $(RPCGEN_SRC:%.x=%.h)
40
41 ALLHDRS= $(RPCGEN_SRC) $(DERIVED_HDRS)
42
43 ROOTDIRS= $(ROOT)/usr/include/rpcsvc
44
45 ROOTHDRS= $(ALLHDRS:%=$(ROOTDIRS)/%)
46
47 $(ROOTDIRS)/%: %
48 $(INS.file)
49
50 .KEEP_STATE:
51
52 # all_h permits derived headers to be built here in the uts source area
53 # for the kernel to reference, without going so far as to install them.
54 #
55 all_h: $(DERIVED_HDRS)
56
57 install_h: all_h $(ROOTDIRS) $(ROOTHDRS)
58
59 clean:
60 $(RM) $(DERIVED_HDRS)
61
62 clobber: clean
63
64 # Don't check rpcgen-derived files.
65 check:
66
67 $(ROOTDIRS):
68 $(INS.dir)
69
70 %.h: %.x
71 $(RPCGEN) -C -h $< -o $@
72
73 idmap_prot.h: $(IDMAP_PROT_X)
74 $(RPCGEN) -CMNh -o $@ $(IDMAP_PROT_X)
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2012 by Delphix. All rights reserved.
26 #
27 # uts/common/rpcsvc/Makefile
28 # This makefile installs system header files that go into
29 # /usr/include/rpcsvc.
30 #
31 # include global definitions
32 include ../../../Makefile.master
33
34 # Protocol descriptions. Alas, the NFS protocol cannot be expressed
35 # completely via rpcgen. The NLM description should go here some day.
36 # Also, the v3 headers have been hacked so that they no longer
37 # quite reflect what goes over the wire.
38 IDMAP_PROT_X= idmap_prot.x
39 RPCGEN_SRC= autofs_prot.x nlm_prot.x sm_inter.x nsm_addr.x \
40 $(IDMAP_PROT_X)
41
42 DERIVED_HDRS= $(RPCGEN_SRC:%.x=%.h)
43
44 ALLHDRS= $(RPCGEN_SRC) $(DERIVED_HDRS)
45
46 ROOTDIRS= $(ROOT)/usr/include/rpcsvc
47
48 ROOTHDRS= $(ALLHDRS:%=$(ROOTDIRS)/%)
49
50 RPCGENFLAGS = -C
51 idmap_prot.h := RPCGENFLAGS += -MN
52 nlm_prot.h := RPCGENFLAGS += -M
53 sm_inter.h := RPCGENFLAGS += -M
54 nsm_addr.h := RPCGENFLAGS += -M
55
56 $(ROOTDIRS)/%: %
57 $(INS.file)
58
59 .KEEP_STATE:
60
61 # all_h permits derived headers to be built here in the uts source area
62 # for the kernel to reference, without going so far as to install them.
63 #
64 all_h: $(DERIVED_HDRS)
65
66 install_h: all_h $(ROOTDIRS) $(ROOTHDRS)
67
68 clean:
69 $(RM) $(DERIVED_HDRS)
70
71 clobber: clean
72
73 # Don't check rpcgen-derived files.
74 check:
75
76 $(ROOTDIRS):
77 $(INS.dir)
78
79 %.h: %.x
80 $(RPCGEN) $(RPCGENFLAGS) -h $< -o $@
|