Isaku Yamahata | ed50bd6 | 2008-10-17 11:17:52 +0900 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Xen components |
| 3 | # |
| 4 | |
Isaku Yamahata | 7477de9 | 2008-10-17 11:18:07 +0900 | [diff] [blame] | 5 | obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \ |
Isaku Yamahata | 91834e6 | 2008-10-17 11:18:10 +0900 | [diff] [blame] | 6 | hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o |
Isaku Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 7 | |
Isaku Yamahata | a0df655 | 2008-10-17 11:18:09 +0900 | [diff] [blame] | 8 | obj-$(CONFIG_IA64_GENERIC) += machvec.o |
| 9 | |
Isaku Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 10 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
| 11 | |
| 12 | # xen multi compile |
Isaku Yamahata | 16583bc | 2008-10-17 11:18:04 +0900 | [diff] [blame] | 13 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S |
Isaku Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 14 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) |
| 15 | obj-y += $(ASM_PARAVIRT_OBJS) |
| 16 | define paravirtualized_xen |
| 17 | AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
| 18 | endef |
| 19 | $(foreach o,$(ASM_PARAVIRT_OBJS),$(eval $(call paravirtualized_xen,$(o)))) |
| 20 | |
| 21 | $(obj)/xen-%.o: $(src)/../kernel/%.S FORCE |
| 22 | $(call if_changed_dep,as_o_S) |