blob: 0ad0224693d99b75bca4724459c454cb5f7f000a [file] [log] [blame]
Isaku Yamahataed50bd62008-10-17 11:17:52 +09001#
2# Makefile for Xen components
3#
4
Isaku Yamahata7477de92008-10-17 11:18:07 +09005obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \
Isaku Yamahata91834e62008-10-17 11:18:10 +09006 hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o
Isaku Yamahata5142ec42008-10-17 11:18:03 +09007
Isaku Yamahataa0df6552008-10-17 11:18:09 +09008obj-$(CONFIG_IA64_GENERIC) += machvec.o
9
Isaku Yamahata5142ec42008-10-17 11:18:03 +090010AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
11
12# xen multi compile
Isaku Yamahata16583bc2008-10-17 11:18:04 +090013ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S
Isaku Yamahata5142ec42008-10-17 11:18:03 +090014ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
15obj-y += $(ASM_PARAVIRT_OBJS)
16define paravirtualized_xen
17AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN
18endef
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)