libxenutil doesn't include _paths.h so no need to generate it.
libxenctrl doesn't use macros from _paths.h so can be removed.
Fix libxenguest to include _paths.h properly instead of relying on
xc_private.h
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
tools/libs/hypfs/xenhypfs.pc
tools/libs/call/headers.chk
tools/libs/call/xencall.pc
-tools/libs/ctrl/_*.[ch]
tools/libs/ctrl/libxenctrl.map
tools/libs/ctrl/xencontrol.pc
tools/libs/foreignmemory/headers.chk
tools/libs/store/xenstore.pc
tools/libs/store/xs_lib.c
tools/libs/util/*.pc
-tools/libs/util/_paths.h
tools/libs/util/libxlu_cfg_y.output
tools/libs/util/libxenutil.map
tools/libs/vchan/headers.chk
include $(XEN_ROOT)/tools/libs/libs.mk
-genpath-target = $(call buildmakevars2header,_paths.h)
-$(eval $(genpath-target))
-
-$(LIB_OBJS) $(PIC_OBJS): _paths.h
-
-include $(DEPS_INCLUDE)
clean: cleanlocal
#include <limits.h>
#include <sys/ioctl.h>
-#include "_paths.h"
-
#define XC_WANT_COMPAT_MAP_FOREIGN_API
#define XC_INTERNAL_COMPAT_MAP_FOREIGN_API
#include "xenctrl.h"
genpath-target = $(call buildmakevars2header,_paths.h)
$(eval $(genpath-target))
-xc_private.h: _paths.h
+$(LIB_OBJS) $(PIC_OBJS): _paths.h
-include $(DEPS_INCLUDE)
#include <xenevtchn.h>
#include "xc_private.h"
+#include "_paths.h"
#include "xenguest.h"
#define SUSPEND_LOCK_FILE XEN_RUN_DIR "/suspend-evtchn-%d.lock"
include $(XEN_ROOT)/tools/libs/libs.mk
-$(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _paths.h
+$(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS)
%.c %.h:: %.y
@rm -f $*.[ch]
@rm -f $*.[ch]
$(FLEX) --header-file=$*.h --outfile=$*.c $<
-genpath-target = $(call buildmakevars2header,_paths.h)
-$(eval $(genpath-target))
-
-include $(DEPS_INCLUDE)
clean: cleanlocal
.PHONY: cleanlocal
cleanlocal:
- $(RM) -f _*.h
$(RM) -f libxlutil.map