~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/libxc/ia64/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ifneq ($(stubdom),y)
 
2
CTRL_SRCS-y += ia64/xc_ia64_stubs.c
 
3
 
 
4
GUEST_SRCS-y += ia64/xc_ia64_hvm_build.c
 
5
GUEST_SRCS-y += ia64/xc_ia64_linux_save.c
 
6
GUEST_SRCS-y += ia64/xc_ia64_linux_restore.c
 
7
 
 
8
GUEST_SRCS-y += ia64/xc_dom_ia64_util.c
 
9
GUEST_SRCS-y += ia64/dom_fw_acpi.c
 
10
 
 
11
GUEST_SRCS-y += ia64/xc_ia64_dom_fwloader.c
 
12
 
 
13
DOMFW_SRCS_BASE := dom_fw_common.c dom_fw_domu.c dom_fw_asm.S
 
14
endif
 
15
DOMFW_SRCS := $(addprefix ia64/, $(DOMFW_SRCS_BASE))
 
16
$(DOMFW_SRCS):
 
17
        ln -sf ../$(XEN_ROOT)/xen/arch/ia64/xen/$(@F) $@
 
18
 
 
19
# XXX kludge: libxc/Makefile doesn't understand .S.
 
20
GUEST_SRCS-y += $(patsubst %.S, %.c, $(DOMFW_SRCS))
 
21
%.o: %.S
 
22
        $(CC) $(CFLAGS) -c $< -o $@
 
23
%.opic: %.S
 
24
        $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
 
25
 
 
26
 
 
27
CFLAGS  += -Iia64
 
28
 
 
29
DOMFW_ASM_HDRS_BASE := bundle.h dom_fw.h dom_fw_common.h dom_fw_domu.h
 
30
DOMFW_ASM_HDRS := $(addprefix ia64/asm/, $(DOMFW_ASM_HDRS_BASE))
 
31
$(DOMFW_ASM_HDRS): ia64/asm
 
32
        ln -sf ../../$(XEN_ROOT)/xen/include/asm-ia64/$(@F) $@
 
33
build: $(DOMFW_ASM_HDR)
 
34
 
 
35
.PHONY: mk-symlinks-acpi mk-symlinks-misc ia64-clean
 
36
 
 
37
IA64_HDR_DIRS := ia64/asm ia64/xen ia64/acpi ia64/acpi/platform
 
38
$(IA64_HDR_DIRS):
 
39
        mkdir -p $@
 
40
 
 
41
IA64_EMPTY_FILES := ia64/asm/acpi.h ia64/xen/list.h 
 
42
$(IA64_EMPTY_FILES): $(IA64_HDR_DIRS)
 
43
        echo "/* automatically created dummy empty header file. */" > $@
 
44
 
 
45
mk-symlinks-acpi: $(IA64_HDR_DIRS) $(IA64_EMPTY_FILES) $(DOMFW_ASM_HDRS)
 
46
        ( cd ia64/acpi && ln -sf ../../$(XEN_ROOT)/xen/include/acpi/*.h .)
 
47
        ( cd ia64/acpi/platform && ln -sf ../../../$(XEN_ROOT)/xen/include/acpi/platform/*.h .)
 
48
        ( cd ia64/acpi/platform/ && ln -sf ../../aclinux.h .)
 
49
        ( cd ia64/xen && ln -sf ../../$(XEN_ROOT)/xen/include/xen/acpi.h .)
 
50
mk-symlinks-misc: $(IA64_HDR_DIRS)
 
51
        ( cd ia64/asm && ln -sf ../../$(XEN_ROOT)/xen/include/asm-ia64/linux-xen/asm/kregs.h .)
 
52
build: mk-symlinks-acpi mk-symlinks-misc
 
53
 
 
54
clean: ia64-clean
 
55
ia64-clean:
 
56
        rm -rf $(DOMFW_SRCS) $(DOMFW_ASM_HDRS) $(IA64_EMPTY_FILES) $(IA64_HDR_DIRS)