dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / librpcsvc / Makefile
blob482a75befc596ffa8acb5140e9a12adee4328eb3
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2015 Gary Mills
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 include ../../Makefile.master
29 # Relative path to ensure path to header file is also relative
30 HEAD_DIR= ../../../../include/rpcsvc
31 UTS_DIR= ../../uts/common/rpcsvc
32 RPC_DIR= ../../uts/common/rpc
34 SUBDIRS= $(MACH)
35 $(BUILD64)SUBDIRS += $(MACH64)
37 DERIVED_FILES= \
38 common/bootparam_prot_xdr.c \
39 common/rstat_xdr.c \
40 common/rusers_xdr.c \
41 common/spray_xdr.c \
42 common/nlm_prot.c \
43 common/sm_inter_xdr.c \
44 common/mount_xdr.c \
45 common/nsm_addr_xdr.c \
46 common/rpc_sztypes.c
48 CLEANFILES += $(DERIVED_FILES)
50 # include library definitions
51 include ../Makefile.lib
53 # definitions for install_h target
54 HDRS= $(TXTS)
55 ROOTHDRDIR= $(ROOT)/usr/include/rpcsvc
56 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
57 CHECKHDRS= $(HDRS:%.h=%.check)
59 # install rule for install_h target
60 $(ROOTHDRDIR)/%: %
61 $(INS.file)
63 all := TARGET= all
64 clean := TARGET= clean
65 clobber := TARGET= clobber
66 install := TARGET= install
68 .KEEP_STATE:
70 all: $(DERIVED_FILES) $(TXTS) .WAIT $(SUBDIRS)
72 install: all .WAIT $(SUBDIRS)
74 install_h: $(DERIVED_FILES) $(ROOTHDRS)
76 check: $(CHECKHDRS)
78 clean clobber: $(SUBDIRS)
81 # Rules for building the derived files
83 # Derived files
85 common/bootparam_prot_xdr.c: $(HEAD_DIR)/bootparam_prot.x
86 $(RPCGEN) -c $(HEAD_DIR)/bootparam_prot.x > $@
88 common/rstat_xdr.c: $(HEAD_DIR)/rstat.x
89 $(RPCGEN) -c $(HEAD_DIR)/rstat.x > $@
91 common/rusers_xdr.c: $(HEAD_DIR)/rusers.x
92 $(RPCGEN) -c $(HEAD_DIR)/rusers.x > $@
94 common/sm_inter_xdr.c: $(UTS_DIR)/sm_inter.x
95 $(RPCGEN) -c $(UTS_DIR)/sm_inter.x > $@
97 common/spray_xdr.c: $(HEAD_DIR)/spray.x
98 $(RPCGEN) -c $(HEAD_DIR)/spray.x > $@
100 common/nlm_prot.c: $(UTS_DIR)/nlm_prot.x
101 $(RPCGEN) -c $(UTS_DIR)/nlm_prot.x > $@
103 common/mount_xdr.c: $(HEAD_DIR)/mount.x
104 $(RPCGEN) -c $(HEAD_DIR)/mount.x > $@
106 common/nsm_addr_xdr.c: $(UTS_DIR)/nsm_addr.x
107 $(RPCGEN) -c $(UTS_DIR)/nsm_addr.x > $@
109 common/rpc_sztypes.c: $(SRCTOP)/include/rpc/rpc_sztypes.x
110 $(RPCGEN) -c $(SRCTOP)/include/rpc/rpc_sztypes.x > $@
112 # include library targets
113 include ../Makefile.targ
115 $(SUBDIRS): FRC
116 @cd $@; pwd; $(MAKE) $(TARGET)
118 FRC: