mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/ocaml was capable of descending into lib/* and xenstored/ simultaneously, obviously with poor results. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
44 lines
945 B
Makefile
44 lines
945 B
Makefile
XEN_ROOT = ../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SUBDIRS_LIBS = \
|
|
libs/uuid libs/mmap \
|
|
libs/log libs/xc libs/eventchn \
|
|
libs/xb libs/xs
|
|
|
|
SUBDIRS_PROGRAMS = xenstored
|
|
|
|
SUBDIRS = $(SUBDIRS_LIBS) $(SUBDIRS_PROGRAMS)
|
|
|
|
.NOTPARALLEL:
|
|
# targets here must be run in order, otherwise we can try
|
|
# to build programs before the libraries are done
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: SUBDIRS
|
|
|
|
.PHONY: SUBDIRS SUBDIRS_PROGRAMS SUBDIRS_LIBS
|
|
SUBDIRS SUBDIRS_PROGRAMS SUBDIRS_LIBS:
|
|
@set -e; for d in $($@); do \
|
|
echo " === building $$d"; \
|
|
$(MAKE) --no-print-directory -C $$d; \
|
|
done
|
|
|
|
.PHONY: install install-libs install-program
|
|
install: install-libs install-program
|
|
|
|
install-program: SUBDIRS_PROGRAMS
|
|
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
|
|
$(INSTALL_PROG) xenstored/oxenstored $(DESTDIR)$(SBINDIR)
|
|
|
|
install-libs: SUBDIRS_LIBS
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@for dir in $(SUBDIRS); do \
|
|
$(MAKE) --no-print-directory -C $$dir clean; \
|
|
done
|