]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
tools/libs/store: don't use symbolic links for external files build-links origin/build-links
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2020 13:49:31 +0000 (15:49 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Oct 2020 13:11:07 +0000 (15:11 +0200)
Instead of using symbolic links to include files from xenstored use
the vpath directive and an include path.

Signed-off-by: Juergen Gross <jgross@suse.com>
tools/libs/store/Makefile

index 930e763de9e2f2bf8399fac408203d953253bf65..bc89b9cd70a9188084bf613b2f1471c59ce3f078 100644 (file)
@@ -21,12 +21,8 @@ CFLAGS += $(CFLAGS_libxentoolcore)
 CFLAGS += -DXEN_LIB_STORED="\"$(XEN_LIB_STORED)\""
 CFLAGS += -DXEN_RUN_STORED="\"$(XEN_RUN_STORED)\""
 
-LINK_FILES = xs_lib.c list.h utils.h
-
-$(LIB_OBJS): $(LINK_FILES)
-
-$(LINK_FILES):
-       ln -sf $(XEN_ROOT)/tools/xenstore/$@ $@
+vpath xs_lib.c $(XEN_ROOT)/tools/xenstore
+CFLAGS += -I $(XEN_ROOT)/tools/xenstore
 
 xs.opic: CFLAGS += -DUSE_PTHREAD
 ifeq ($(CONFIG_Linux),y)