tools: Do not add top-level tools dir to include path
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 15:40:32 +0000 (16:40 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 Jul 2015 10:14:13 +0000 (11:14 +0100)
Instead switch to an explicit -include $(XEN_ROOT)/tools/config.h to
pickup config.h.

Most places already do this, fixup the rest.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libfsimage/ext2fs-lib/Makefile
tools/libfsimage/ext2fs-lib/ext2fs-lib.c
tools/misc/Makefile
tools/misc/gtraceview.c
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/systemd_stubs.c
tools/xenstat/xentop/Makefile
tools/xenstat/xentop/xentop.c
tools/xenstore/Makefile
tools/xenstore/xenstored_core.c

index 671fbffd736a678446db9b4174d01ee3412100ff..0e00fde0e17e458e03d3e01919a3468d5c72f79e 100644 (file)
@@ -6,8 +6,8 @@ FS = ext2fs-lib
 
 FS_LIBDEPS = $(EXTFS_LIBS)
 
-# Include configure output (config.h) to headers search path
-CFLAGS += -I$(XEN_ROOT)/tools
+# Include configure output (config.h)
+CFLAGS += -include $(XEN_ROOT)/tools/config.h
 
 .PHONY: all
 all: fs-all
index ed471465f93845ff7843e3b6386b8846831bae86..84b6d1e9c358a708ebc4502c211a5eda0fa18cab 100644 (file)
@@ -21,9 +21,6 @@
  * Use is subject to license terms.
  */
 
-/* Include output from configure */
-#include <config.h>
-
 #include <fsimage_plugin.h>
 #include INCLUDE_EXTFS_H
 #include <errno.h>
index 82c361f2855e1912897909e436dbb7698d4d1f3c..c4490f33daf480fb1b29e2962cfc3c138c45376e 100644 (file)
@@ -1,7 +1,9 @@
 XEN_ROOT=$(CURDIR)/../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-CFLAGS += -Werror -I$(XEN_ROOT)/tools
+CFLAGS += -Werror
+# Include configure output (config.h)
+CFLAGS += -include $(XEN_ROOT)/tools/config.h
 CFLAGS += $(CFLAGS_libxenctrl)
 CFLAGS += $(CFLAGS_xeninclude)
 CFLAGS += $(CFLAGS_libxenstore)
index 501f86ab0f46588c1d26d569399d312437d25197..d9f11853321e2833a52ba5ed0794485ce3d95cb0 100644 (file)
@@ -16,9 +16,6 @@
  * Place - Suite 330, Boston, MA 02111-1307 USA.
  */
 
-/* Include output from configure */
-#include <config.h>
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index bcf09d487e14f95d294662ee528bcb933ffac825..d861f113153093f1552ba9ee203635325213819b 100644 (file)
@@ -2,7 +2,8 @@ XEN_ROOT = $(CURDIR)/../../..
 OCAML_TOPLEVEL = $(CURDIR)/..
 include $(OCAML_TOPLEVEL)/common.make
 
-CFLAGS += -I$(XEN_ROOT)/tools/
+# Include configure output (config.h)
+CFLAGS += -include $(XEN_ROOT)/tools/config.h
 CFLAGS-$(CONFIG_SYSTEMD)  += $(SYSTEMD_CFLAGS)
 LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS)
 
index 623592c95f1f977e45ec8e299e8adbaa9d4728fe..d924ff1bd793ff3365924dd71add10e092ee3131 100644 (file)
@@ -22,7 +22,6 @@
 #include <caml/custom.h>
 #include <caml/signals.h>
 #include <caml/fail.h>
-#include <config.h>
 
 #if defined(HAVE_SYSTEMD)
 
index 97950b970bb6f28c8ce8432e47cdb9181eb0fc54..e67c9ab5bac9d4a1ff3d62cd8fc5be175c8822d0 100644 (file)
@@ -22,8 +22,8 @@ CFLAGS += -DGCC_PRINTF -Werror $(CFLAGS_libxenstat)
 LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(TINFO_LIBS) $(SOCKET_LIBS) -lm -lyajl
 CFLAGS += -DHOST_$(XEN_OS)
 
-# Include configure output (config.h) to headers search path
-CFLAGS += -I$(XEN_ROOT)/tools
+# Include configure output (config.h)
+CFLAGS += -include $(XEN_ROOT)/tools/config.h
 LDFLAGS += $(APPEND_LDFLAGS)
 
 .PHONY: all
index 23b57f18e35e5ea35be7dfe6401e4ed9f73ee5df..8173886d439804b6b3b82de37294ffdde6d57438 100644 (file)
@@ -19,9 +19,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/* Include output from configure */
-#include <config.h>
-
 /* get curses header from configure */
 #include INCLUDE_CURSES_H
 
index 30f3b463135848d2b672524c832c5884622994ea..1b4a4942be1b5964746d95021b66076d35d6b66b 100644 (file)
@@ -6,7 +6,8 @@ MINOR = 3
 
 CFLAGS += -Werror
 CFLAGS += -I.
-CFLAGS += -I$(XEN_ROOT)/tools/
+# Include configure output (config.h)
+CFLAGS += -include $(XEN_ROOT)/tools/config.h
 CFLAGS += -I./include
 CFLAGS += $(CFLAGS_libxenctrl)
 CFLAGS += -DXEN_LIB_STORED="\"$(XEN_LIB_STORED)\""
index 3fd9a20b53f3b4e6d6f6ba32ca46a91dbb1bb01a..b18000da93f33cbe679828ecf4978e8bf475a54e 100644 (file)
@@ -40,7 +40,6 @@
 #include <signal.h>
 #include <assert.h>
 #include <setjmp.h>
-#include <config.h>
 
 #include "utils.h"
 #include "list.h"