ia64/xen-unstable

view tools/libxc/ia64/Makefile @ 15763:c21bd325088a

[IA64] Fix parallel build; directory must exist before making symlink

Signed-off-by: Aron Griffis <aron@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Tue Aug 28 12:24:27 2007 -0600 (2007-08-28)
parents 43836c2b595b
children a905c582a406
line source
1 CTRL_SRCS-y += ia64/xc_ia64_stubs.c
3 GUEST_SRCS-y += ia64/xc_ia64_hvm_build.c
4 GUEST_SRCS-y += ia64/xc_ia64_linux_save.c
5 GUEST_SRCS-y += ia64/xc_ia64_linux_restore.c
7 GUEST_SRCS-y += ia64/xc_dom_ia64_util.c
8 GUEST_SRCS-y += ia64/dom_fw_acpi.c
10 DOMFW_SRCS_BASE := dom_fw_common.c dom_fw_domu.c dom_fw_asm.S
11 DOMFW_SRCS := $(addprefix ia64/, $(DOMFW_SRCS_BASE))
12 $(DOMFW_SRCS):
13 ln -sf ../$(XEN_ROOT)/xen/arch/ia64/xen/$(@F) $@
15 # XXX kludge: libxc/Makefile doesn't understand .S.
16 GUEST_SRCS-y += $(patsubst %.S, %.c, $(DOMFW_SRCS))
17 %.o: %.S
18 $(CC) $(CFLAGS) -c $< -o $@
19 %.opic: %.S
20 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
23 CFLAGS += -Iia64
25 DOMFW_ASM_HDRS_BASE := bundle.h dom_fw.h dom_fw_common.h dom_fw_domu.h
26 DOMFW_ASM_HDRS := $(addprefix ia64/asm/, $(DOMFW_ASM_HDRS_BASE))
27 $(DOMFW_ASM_HDRS): ia64/asm
28 ln -sf ../../$(XEN_ROOT)/xen/include/asm-ia64/$(@F) $@
29 build: $(DOMFW_ASM_HDR)
31 .PHONY: mk-symlinks-acpi mk-symlinks-misc ia64-clean
33 IA64_HDR_DIRS := ia64/asm ia64/xen ia64/acpi ia64/acpi/platform
34 $(IA64_HDR_DIRS):
35 mkdir -p $@
37 IA64_EMPTY_FILES := ia64/asm/acpi.h ia64/xen/list.h
38 $(IA64_EMPTY_FILES): $(IA64_HDR_DIRS)
39 echo "/* automatically created dummy empty header file. */" > $@
41 mk-symlinks-acpi: $(IA64_HDR_DIRS) $(IA64_EMPTY_FILES) $(DOMFW_ASM_HDRS)
42 ( cd ia64/acpi && ln -sf ../../$(XEN_ROOT)/xen/include/acpi/*.h .)
43 ( cd ia64/acpi/platform && ln -sf ../../../$(XEN_ROOT)/xen/include/acpi/platform/*.h .)
44 ( cd ia64/acpi/platform/ && ln -sf ../../aclinux.h .)
45 ( cd ia64/xen && ln -sf ../../$(XEN_ROOT)/xen/include/xen/acpi.h .)
46 mk-symlinks-misc: $(IA64_HDR_DIRS)
47 ( cd ia64/asm && ln -sf ../../$(XEN_ROOT)/xen/include/asm-ia64/linux-xen/asm/kregs.h .)
48 build: mk-symlinks-acpi mk-symlinks-misc
50 clean: ia64-clean
51 ia64-clean:
52 rm -rf $(DOMFW_SRCS) $(DOMFW_ASM_HDRS) $(IA64_EMPTY_FILES) $(IA64_HDR_DIRS)