Revert changeset 20898:8c1889297084

This commit is contained in:
Keir Fraser committed 2010-02-04 19:40:19 +00:00
1 parent e670c28c9f
commit af43e76ed6
2 files changed
+19 -10

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
#!/bin/sh
# CHECK-BUILD
. ./funcs.sh
has_header libconfig.h || fail "missing libconfig headers (package libconfig-devel)"
+19 -4
View File
@@ -14,6 +14,11 @@ CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) $(CFLAGS_libxenstore)
LIBS = $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) $(LDFLAGS_libxenstore)
#LIBCONFIG_URL ?= http://www.hyperrealm.com/libconfig
LIBCONFIG_URL = $(XEN_EXTFILES_URL)
LIBCONFIG_SOURCE = libconfig-1.3.2
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)
@@ -34,11 +39,18 @@ libxenlight.so.$(MAJOR).$(MINOR): $(LIBXL_OBJS)
libxenlight.a: $(LIBXL_OBJS)
$(AR) rcs libxenlight.a $^
xl.o: xl.c
$(CC) $(CFLAGS) -c xl.c
$(LIBCONFIG_SOURCE).tar.gz:
$(WGET) $(LIBCONFIG_URL)/$@
$(CLIENTS): xl.o libxenlight.so
$(CC) $(LDFLAGS) -o $@ $< $(LIBS) -L . -lxenlight -lconfig
$(LIBCONFIG_OUTPUT)/libconfig.so: $(LIBCONFIG_SOURCE).tar.gz
[ ! -d "$(LIBCONFIG_SOURCE)" ] && tar xzf $<
cd $(LIBCONFIG_SOURCE) && ./configure --prefix=$(PREFIX) --libdir=$(LIBDIR) --disable-cxx && $(MAKE)
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
$(CC) $(LDFLAGS) -o $@ $< $(LIBS) -L . -lxenlight -L$(LIBCONFIG_OUTPUT) -lconfig
.PHONY: install
install: all
@@ -48,11 +60,14 @@ install: all
ln -sf libxenlight.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libxenlight.so
$(INSTALL_DATA) libxenlight.a $(DESTDIR)$(LIBDIR)
$(INSTALL_DATA) libxl.h $(DESTDIR)$(INCLUDEDIR)
cd $(LIBCONFIG_SOURCE) && DESTDIR=$(DESTDIR) $(MAKE) install
.PHONY: clean
clean:
$(RM) -f *.o *.so* *.a $(CLIENTS) $(DEPS)
$(RM) -rf $(LIBCONFIG_SOURCE)
distclean: clean
$(RM) -f $(LIBCONFIG_SOURCE).tar.gz
-include $(DEPS)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.