ia64/xen-unstable

changeset 16891:a4335050220c

Use VPATH instead of symlinks for libelf inclusion into libxenctrl.
Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 10:15:38 2008 +0000 (2008-01-26)
parents c2216dce87fb
children 97dd72c045a5
files tools/libxc/Makefile
line diff
     1.1 --- a/tools/libxc/Makefile	Fri Jan 25 16:30:34 2008 +0000
     1.2 +++ b/tools/libxc/Makefile	Sat Jan 26 10:15:38 2008 +0000
     1.3 @@ -31,20 +31,11 @@ GUEST_SRCS-y += xg_private.c
     1.4  GUEST_SRCS-$(CONFIG_MIGRATE) += xc_domain_restore.c xc_domain_save.c
     1.5  GUEST_SRCS-$(CONFIG_HVM) += xc_hvm_build.c
     1.6  
     1.7 -# symlink libelf from xen/common/libelf/
     1.8 -LIBELF_SRCS := libelf-tools.c libelf-loader.c
     1.9 -LIBELF_SRCS += libelf-dominfo.c libelf-relocate.c
    1.10 +VPATH = ../../xen/common/libelf
    1.11 +CFLAGS += -I../../xen/common/libelf
    1.12  
    1.13 -libelf-tools.o: libelf-tools.c libelf-private.h
    1.14 -libelf-loader.o: libelf-loader.c libelf-private.h
    1.15 -libelf-dominfo.o: libelf-dominfo.c libelf-private.h
    1.16 -libelf-relocate.o: libelf-relocate.c libelf-private.h
    1.17 -
    1.18 -$(LIBELF_SRCS) libelf-private.h:
    1.19 -	ln -s ../../xen/common/libelf/$@ $@
    1.20 -
    1.21 -# add libelf bits to libxc
    1.22 -GUEST_SRCS-y += $(LIBELF_SRCS)
    1.23 +GUEST_SRCS-y += libelf-tools.c libelf-loader.c
    1.24 +GUEST_SRCS-y += libelf-dominfo.c libelf-relocate.c
    1.25  
    1.26  # new domain builder
    1.27  GUEST_SRCS-y += xc_dom_core.c xc_dom_boot.c
    1.28 @@ -125,8 +116,7 @@ TAGS:
    1.29  clean:
    1.30  	rm -rf *.rpm $(LIB) *~ $(DEPS) xen \
    1.31              $(CTRL_LIB_OBJS) $(CTRL_PIC_OBJS) \
    1.32 -            $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS) \
    1.33 -            $(LIBELF_SRCS) libelf-private.h
    1.34 +            $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS)
    1.35  
    1.36  .PHONY: rpm
    1.37  rpm: build