libxl: Add make deps
PATCH v2 1/1 libxl: Add make deps
Signed-off-by Jean Guyader <[email protected]>
--- tools/libxl/Makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
tools/libxl/Makefile +6 -1
@@ -25,11 +25,16 @@ LIBCONFIG_OUTPUT = $(LIBCONFIG_SOURCE)/.libs LIBXL_OBJS-y = osdeps.o LIBXL_OBJS = flexarray.o libxl.o libxl_dom.o libxl_exec.o libxl_xshelp.o libxl_device.o libxl_internal.o xenguest.o libxl_utils.o $(LIBXL_OBJS-y) +LIBXL_HEADERS = flexarray.h libxl.h libxl_internal.h libxl_osdeps.h libxl_utils.h xen_uuid.h +LIBXL_SRCS = ${LIBXL_OBJS:.o=.c} $(LIBXL_HEADERS) xl.c CLIENTS = xl .PHONY: all -all: $(CLIENTS) libxenlight.so libxenlight.a +all: $(CLIENTS) libxenlight.so libxenlight.a .deps + +.deps: $(LIBXL_SRCS) + $(CC) -MM $(LIBXL_SRCS) > .deps libxenlight.so: libxenlight.so.$(MAJOR) ln -sf $< $@
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
PATCH v2 1/1 libxl: Makefile and libconfig
Get rid of the depedency on the LIBCONFIG_SOURCE directory.
Signed-off-by Jean Guyader <[email protected]>
--- tools/libxl/Makefile | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
tools/libxl/Makefile +3 -5
@@ -51,13 +51,11 @@ libxenlight.a: $(LIBXL_OBJS) $(LIBCONFIG_SOURCE).tar.gz: $(WGET) $(LIBCONFIG_URL)/$@ -$(LIBCONFIG_SOURCE): $(LIBCONFIG_SOURCE).tar.gz - tar xzf $< - -$(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE) +$(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE).tar.gz + rm -rf "$(LIBCONFIG_SOURCE)" && tar xzf $< cd $(LIBCONFIG_SOURCE) && ./configure --prefix=$(DESTDIR)$(PREFIX) && $(MAKE) -xl.o: $(LIBCONFIG_SOURCE) +xl.o: $(LIBCONFIG_OUTPUT)/libconfig.so xl.c $(CC) $(CFLAGS) -I$(LIBCONFIG_SOURCE) -c xl.c $(CLIENTS): xl.o libxenlight.so $(LIBCONFIG_OUTPUT)/libconfig.so
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH v2] libxl: Makefile and libconfig
Quoted 4 lines · Jean Guyader
Get rid of the depedency on the
LIBCONFIG_SOURCEdirectory.Signed-off-by Jean Guyader <[email protected]>
Quoted 2 lines · Jean Guyader
Signed-off-by Jean Guyader <[email protected]>
Quoted 3 lines · Jean Guyader
Signed-off-by Jean Guyader <[email protected]>---
Acked-by Vincent Hanquez <[email protected]>
Signature · 1 line
Vincent
Re: [PATCH v2] libxl: Makefile and libconfig
In reply to Jean GuyaderQuoted 4 lines · Jean Guyader
Get rid of the depedency on the
LIBCONFIG_SOURCEdirectory.Signed-off-by Jean Guyader <[email protected]>
Acked-by Vincent Hanquez <[email protected]>
Signature · 1 line
Vincent