Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

226 lines (204 sloc) 5.205 kB
AUTOMAKE_OPTIONS = foreign
HAVE_XEN = @XEN@
HAVE_DEVICE_MAPPER = @DEVICE_MAPPER@
HAVE_LINUX_CDROM = @LINUX_CDROM@
HAVE_XMLM = @OCAML_PKG_xmlm@
HAVE_TYPECONV = @OCAML_PKG_type_conv@
include config.mk
.PHONY: default
default: all
@:
.PHONY: all
all:
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light
endif
$(MAKE) -C uuid
$(MAKE) -C stdext
$(MAKE) -C log
$(MAKE) -C xenctrlext
$(MAKE) -C xenstoreext
$(MAKE) -C stunnel
$(MAKE) -C pciutil
$(MAKE) -C close-and-exec
$(MAKE) -C sexpr
$(MAKE) -C udev
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2
$(MAKE) -C rss
endif
$(MAKE) -C http-svr
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm
$(MAKE) -C mlvm
endif
$(MAKE) -C forking_executioner
$(MAKE) -C xen-utils
$(MAKE) -C nbd
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev
$(MAKE) -C cpuid
$(MAKE) -C vhd
$(MAKE) -C tapctl
endif
$(MAKE) -C pciutil bins
$(MAKE) -C xml-light2 bins
$(MAKE) -C sexpr bins
$(MAKE) -C stdext bins
$(MAKE) -C close-and-exec bins
STUBLIBDIR = $(OCAMLDESTDIR)/stublibs
$(STUBLIBDIR):
mkdir -p $@
install: $(STUBLIBDIR)
$(MAKE) -C uuid install
$(MAKE) -C stdext install
$(MAKE) -C xenctrlext install
$(MAKE) -C xenstoreext install
$(MAKE) -C log install
$(MAKE) -C stunnel install
$(MAKE) -C pciutil install
$(MAKE) -C http-svr install
$(MAKE) -C close-and-exec install
$(MAKE) -C sexpr install
$(MAKE) -C udev install
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light install
endif
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2 install
$(MAKE) -C rss install
endif
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom install
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm install
$(MAKE) -C mlvm install
endif
$(MAKE) -C forking_executioner install
$(MAKE) -C xen-utils install
$(MAKE) -C nbd install
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev install
$(MAKE) -C cpuid install
$(MAKE) -C vhd install
$(MAKE) -C tapctl install
endif
$(MAKE) -C pciutil bininstall
$(MAKE) -C xml-light2 bininstall
$(MAKE) -C sexpr bininstall
$(MAKE) -C stdext bininstall
$(MAKE) -C close-and-exec bininstall
$(MAKE) -C forking_executioner bininstall
uninstall:
$(MAKE) -C uuid uninstall
$(MAKE) -C stdext uninstall
$(MAKE) -C xenctrlext uninstall
$(MAKE) -C xenstoreext uninstall
$(MAKE) -C log uninstall
$(MAKE) -C stunnel uninstall
$(MAKE) -C pciutil uninstall
$(MAKE) -C http-svr uninstall
$(MAKE) -C close-and-exec uninstall
$(MAKE) -C sexpr uninstall
$(MAKE) -C udev uninstall
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light uninstall
endif
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2 uninstall
$(MAKE) -C rss uninstall
endif
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom uninstall
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm uninstall
$(MAKE) -C mlvm uninstall
endif
$(MAKE) -C forking_executioner uninstall
$(MAKE) -C xen-utils uninstall
$(MAKE) -C nbd uninstall
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev uninstall
$(MAKE) -C cpuid uninstall
$(MAKE) -C vhd uninstall
$(MAKE) -C tapctl uninstall
endif
$(MAKE) -C pciutil binuninstall
$(MAKE) -C xml-light2 binuninstall
$(MAKE) -C sexpr binuninstall
$(MAKE) -C stdext binuninstall
$(MAKE) -C close-and-exec binuninstall
$(MAKE) -C forking_executioner binuninstall
.PHONY: doc
doc:
$(MAKE) -C uuid doc
$(MAKE) -C stdext doc
$(MAKE) -C xenctrlext doc
$(MAKE) -C xenstoreext doc
$(MAKE) -C sexpr doc
$(MAKE) -C udev doc
$(MAKE) -C log doc
$(MAKE) -C xml-light2 doc
$(MAKE) -C rpc-light doc
$(MAKE) -C http-svr doc
$(MAKE) -C camldm doc
$(MAKE) -C cdrom doc
$(MAKE) -C pciutil doc
$(MAKE) -C rss doc
$(MAKE) -C stunnel doc
$(MAKE) -C netdev doc
$(MAKE) -C forking_executioner doc
$(MAKE) -C mlvm doc
$(MAKE) -C cpuid doc
$(MAKE) -C vhd doc
$(MAKE) -C tapctl doc
$(MAKE) -C xen-utils doc
$(MAKE) -C nbd doc
.PHONY: test
test:
$(MAKE) -C http-svr test
.PHONY: clean
clean:
$(MAKE) -C uuid clean
$(MAKE) -C camldm clean
$(MAKE) -C stdext clean
$(MAKE) -C xenctrlext clean
$(MAKE) -C xenstoreext clean
$(MAKE) -C log clean
$(MAKE) -C stunnel clean
$(MAKE) -C pciutil clean
$(MAKE) -C cdrom clean
$(MAKE) -C xml-light2 clean
$(MAKE) -C rss clean
$(MAKE) -C rpc-light clean
$(MAKE) -C http-svr clean
$(MAKE) -C close-and-exec clean
$(MAKE) -C sexpr clean
$(MAKE) -C udev clean
$(MAKE) -C doc clean
$(MAKE) -C forking_executioner clean
$(MAKE) -C mlvm clean
$(MAKE) -C xen-utils clean
$(MAKE) -C nbd clean
$(MAKE) -C netdev clean
$(MAKE) -C cpuid clean
$(MAKE) -C vhd clean
$(MAKE) -C tapctl clean
RPM_SPECSDIR=$(shell rpm --eval='%_specdir')
RPM_SOURCEDIR=$(shell rpm --eval='%_sourcedir')
XEN_RELEASE=xcp$(VERSION)
$(RPM_SPECSDIR)/xapi-libs.spec: xapi.spec.in
sed -e s\,@XEN_RELEASE@,$(XEN_RELEASE),g \
< xapi.spec.in \
> $(RPM_SPECSDIR)/xapi-libs.spec
$(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2:
while ! [ -d .git ]; do cd ..; done; \
git archive --prefix=xapi-0/ --format=tar HEAD | bzip2 -z > $(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2 # xen-api-libs/Makefile.in
.PHONY: rpm
rpm: $(RPM_SPECSDIR)/xapi-libs.spec $(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2
rpmbuild -ba $(RPM_SPECSDIR)/xapi-libs.spec
Jump to Line
Something went wrong with that request. Please try again.