2 # Makefile for the ia32 kernel emulation subsystem.
5 obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o tls32.o \
6 ia32_binfmt.o fpu32.o ptrace32.o syscall32.o syscall32_syscall.o
8 sysv-$(CONFIG_SYSVIPC) := ipc32.o
9 obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
11 obj-$(CONFIG_IA32_AOUT) += ia32_aout.o
13 $(obj)/syscall32_syscall.o: \
14 $(foreach F,sysenter syscall,$(obj)/vsyscall-$F.so)
16 # Teach kbuild about targets
17 targets := $(foreach F,sysenter syscall,vsyscall-$F.o vsyscall-$F.so)
19 # The DSO images are built using a special linker script
20 quiet_cmd_syscall = SYSCALL $@
21 cmd_syscall = $(CC) -m32 -nostdlib -shared -s \
22 -Wl,-soname=linux-gate.so.1 -o $@ \
23 -Wl,-T,$(filter-out FORCE,$^)
25 $(obj)/vsyscall-sysenter.so $(obj)/vsyscall-syscall.so: \
26 $(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
27 $(call if_changed,syscall)
29 AFLAGS_vsyscall-sysenter.o = -m32
30 AFLAGS_vsyscall-syscall.o = -m32