ia64/xen-unstable

view linux-2.6-xen-sparse/arch/xen/x86_64/ia32/Makefile @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 #
2 # Makefile for the ia32 kernel emulation subsystem.
3 #
4 XENARCH := $(subst ",,$(CONFIG_XENARCH))
6 CFLAGS += -Iarch/$(XENARCH)/kernel
8 obj-$(CONFIG_IA32_EMULATION) := ia32entry.o syscall32.o
10 c-obj-$(CONFIG_IA32_EMULATION) := sys_ia32.o ia32_ioctl.o \
11 ia32_signal.o tls32.o \
12 ia32_binfmt.o fpu32.o ptrace32.o
14 s-obj-y :=
16 sysv-$(CONFIG_SYSVIPC) := ipc32.o
17 c-obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
19 c-obj-$(CONFIG_IA32_AOUT) += ia32_aout.o
21 $(obj)/syscall32.o: $(src)/syscall32.c \
22 $(foreach F,int80 sysenter syscall,$(obj)/vsyscall-$F.so)
24 # Teach kbuild about targets
25 targets := $(foreach F,int80 sysenter syscall,vsyscall-$F.o vsyscall-$F.so)
27 # The DSO images are built using a special linker script
28 quiet_cmd_syscall = SYSCALL $@
29 cmd_syscall = $(CC) -m32 -nostdlib -shared -s \
30 -Wl,-soname=linux-gate.so.1 -o $@ \
31 -Wl,-T,$(filter-out FORCE,$^)
34 $(obj)/vsyscall-int80.so $(obj)/vsyscall-sysenter.so $(obj)/vsyscall-syscall.so: \
35 $(obj)/vsyscall-%.so: $(obj)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
36 $(call if_changed,syscall)
38 AFLAGS_vsyscall-int80.o = -m32 -I$(obj)
39 AFLAGS_vsyscall-sysenter.o = -m32 -I$(obj)
40 AFLAGS_vsyscall-syscall.o = -m32 -I$(obj)
41 CFLAGS_ia32_ioctl.o += -Ifs/
43 s-link := vsyscall-syscall.o vsyscall-sysenter.o vsyscall-sigreturn.o
45 $(obj)/vsyscall.lds:
46 @ln -fsn $(srctree)/arch/x86_64/ia32/$(notdir $@) $@
48 $(patsubst %.o,$(obj)/%.c,$(c-obj-y) $(c-link)) $(patsubst %.o,$(obj)/%.S,$(s-obj-y) $(s-link)):
49 @ln -fsn $(srctree)/arch/x86_64/ia32/$(notdir $@) $@
51 $(obj)/vsyscall-int80.o $(obj)/vsyscall-sysenter.o $(obj)/vsyscall-syscall.o: \
52 $(obj)/vsyscall-sigreturn.S $(obj)/../../i386/kernel/vsyscall-note.S
54 $(obj)/../../i386/kernel/vsyscall-note.S:
55 @ln -fsn $(srctree)/arch/i386/kernel/$(notdir $@) $@
57 obj-y += $(c-obj-y) $(s-obj-y)
59 clean-files += $(patsubst %.o,%.c,$(c-obj-y) $(c-obj-) $(c-link))
60 clean-files += $(patsubst %.o,%.S,$(s-obj-y) $(s-obj-) $(s-link))