diff options
author | Gary Mills <gary_mills@fastmail.fm> | 2015-07-01 08:28:25 -0500 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2015-07-02 13:53:15 -0400 |
commit | 77eb9dd4fa1a2a4b00af3d1973a84b60fbf40cdf (patch) | |
tree | e4331a806a65928d0b5a0564a5492c4e62adcbc5 | |
parent | 29a47e6ee6365b8ebcd68a3d59c0e1ef32f17ceb (diff) | |
download | illumos-joyent-77eb9dd4fa1a2a4b00af3d1973a84b60fbf40cdf.tar.gz |
687 rpcgen should not generate absolute #includes
Reviewed by: Marcel Telka <marcel@telka.sk>
Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r-- | usr/src/lib/libidmap/Makefile.com | 4 | ||||
-rw-r--r-- | usr/src/lib/librpcsvc/Makefile | 44 | ||||
-rw-r--r-- | usr/src/lib/librpcsvc/Makefile.com | 4 |
3 files changed, 30 insertions, 22 deletions
diff --git a/usr/src/lib/libidmap/Makefile.com b/usr/src/lib/libidmap/Makefile.com index 39f2ccd957..2a5e5484de 100644 --- a/usr/src/lib/libidmap/Makefile.com +++ b/usr/src/lib/libidmap/Makefile.com @@ -19,6 +19,7 @@ # CDDL HEADER END # # +# Copyright 2015 Gary Mills # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # # @@ -48,7 +49,8 @@ LDLIBS += -lc -lavl -lnsl -lnvpair -luutil SRCDIR = ../common $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) -IDMAP_PROT_X = $(SRC)/uts/common/rpcsvc/idmap_prot.x +# Relative path to ensure path to idmap_prot.h is also relative +IDMAP_PROT_X = ../../../uts/common/rpcsvc/idmap_prot.x CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT -I$(SRCDIR) diff --git a/usr/src/lib/librpcsvc/Makefile b/usr/src/lib/librpcsvc/Makefile index 4e61f7a7e2..1209096b72 100644 --- a/usr/src/lib/librpcsvc/Makefile +++ b/usr/src/lib/librpcsvc/Makefile @@ -19,15 +19,17 @@ # CDDL HEADER END # # +# Copyright 2015 Gary Mills # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# include ../../Makefile.master -PROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc +# Relative path to ensure path to header file is also relative +HEAD_DIR= ../../head/rpcsvc +UTS_DIR= ../../uts/common/rpcsvc +RPC_DIR= ../../uts/common/rpc SUBDIRS= $(MACH) $(BUILD64)SUBDIRS += $(MACH64) @@ -81,32 +83,32 @@ clean clobber lint: $(SUBDIRS) # # Derived files # -common/bootparam_prot_xdr.c: $(PROTOCOL_DIR)/bootparam_prot.x - $(RPCGEN) -c $(PROTOCOL_DIR)/bootparam_prot.x > $@ +common/bootparam_prot_xdr.c: $(HEAD_DIR)/bootparam_prot.x + $(RPCGEN) -c $(HEAD_DIR)/bootparam_prot.x > $@ -common/rstat_xdr.c: $(PROTOCOL_DIR)/rstat.x - $(RPCGEN) -c $(PROTOCOL_DIR)/rstat.x > $@ +common/rstat_xdr.c: $(HEAD_DIR)/rstat.x + $(RPCGEN) -c $(HEAD_DIR)/rstat.x > $@ -common/rusers_xdr.c: $(PROTOCOL_DIR)/rusers.x - $(RPCGEN) -c $(PROTOCOL_DIR)/rusers.x > $@ +common/rusers_xdr.c: $(HEAD_DIR)/rusers.x + $(RPCGEN) -c $(HEAD_DIR)/rusers.x > $@ -common/sm_inter_xdr.c: $(PROTOCOL_DIR)/sm_inter.x - $(RPCGEN) -c $(PROTOCOL_DIR)/sm_inter.x > $@ +common/sm_inter_xdr.c: $(UTS_DIR)/sm_inter.x + $(RPCGEN) -c $(UTS_DIR)/sm_inter.x > $@ -common/spray_xdr.c: $(PROTOCOL_DIR)/spray.x - $(RPCGEN) -c $(PROTOCOL_DIR)/spray.x > $@ +common/spray_xdr.c: $(HEAD_DIR)/spray.x + $(RPCGEN) -c $(HEAD_DIR)/spray.x > $@ -common/nlm_prot.c: $(PROTOCOL_DIR)/nlm_prot.x - $(RPCGEN) -c $(PROTOCOL_DIR)/nlm_prot.x > $@ +common/nlm_prot.c: $(UTS_DIR)/nlm_prot.x + $(RPCGEN) -c $(UTS_DIR)/nlm_prot.x > $@ -common/mount_xdr.c: $(PROTOCOL_DIR)/mount.x - $(RPCGEN) -c $(PROTOCOL_DIR)/mount.x > $@ +common/mount_xdr.c: $(HEAD_DIR)/mount.x + $(RPCGEN) -c $(HEAD_DIR)/mount.x > $@ -common/nsm_addr_xdr.c: $(PROTOCOL_DIR)/nsm_addr.x - $(RPCGEN) -c $(PROTOCOL_DIR)/nsm_addr.x > $@ +common/nsm_addr_xdr.c: $(UTS_DIR)/nsm_addr.x + $(RPCGEN) -c $(UTS_DIR)/nsm_addr.x > $@ -common/rpc_sztypes.c: $(PROTOCOL_DIR)/rpc_sztypes.x - $(RPCGEN) -c $(PROTOCOL_DIR)/rpc_sztypes.x > $@ +common/rpc_sztypes.c: $(RPC_DIR)/rpc_sztypes.x + $(RPCGEN) -c $(RPC_DIR)/rpc_sztypes.x > $@ # include library targets include ../Makefile.targ diff --git a/usr/src/lib/librpcsvc/Makefile.com b/usr/src/lib/librpcsvc/Makefile.com index 64a77e161e..15b6c6cb48 100644 --- a/usr/src/lib/librpcsvc/Makefile.com +++ b/usr/src/lib/librpcsvc/Makefile.com @@ -20,6 +20,7 @@ # # +# Copyright 2015 Gary Mills # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # @@ -57,6 +58,9 @@ $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) LDLIBS += -lnsl -lc +# Needed so header files with relative paths will work +CPPFLAGS += -I.. + .KEEP_STATE: lint: lintcheck |