2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for the ia32 kernel emulation subsystem.
|
|
|
|
#
|
|
|
|
|
2006-01-10 12:52:14 +08:00
|
|
|
obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o tls32.o \
|
2006-01-17 14:03:38 +08:00
|
|
|
ia32_binfmt.o fpu32.o ptrace32.o syscall32.o syscall32_syscall.o \
|
|
|
|
mmap32.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
sysv-$(CONFIG_SYSVIPC) := ipc32.o
|
|
|
|
obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
|
|
|
|
|
|
|
|
obj-$(CONFIG_IA32_AOUT) += ia32_aout.o
|
|
|
|
|
2005-07-29 12:15:44 +08:00
|
|
|
$(obj)/syscall32_syscall.o: \
|
2005-04-17 06:20:36 +08:00
|
|
|
$(foreach F,sysenter syscall,$(obj)/vsyscall-$F.so)
|
|
|
|
|
|
|
|
# Teach kbuild about targets
|
|
|
|
targets := $(foreach F,sysenter syscall,vsyscall-$F.o vsyscall-$F.so)
|
|
|
|
|
|
|
|
# The DSO images are built using a special linker script
|
|
|
|
quiet_cmd_syscall = SYSCALL $@
|
|
|
|
cmd_syscall = $(CC) -m32 -nostdlib -shared -s \
|
|
|
|
-Wl,-soname=linux-gate.so.1 -o $@ \
|
|
|
|
-Wl,-T,$(filter-out FORCE,$^)
|
|
|
|
|
|
|
|
$(obj)/vsyscall-sysenter.so $(obj)/vsyscall-syscall.so: \
|
|
|
|
$(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
|
|
|
|
$(call if_changed,syscall)
|
|
|
|
|
2006-04-22 17:35:57 +08:00
|
|
|
AFLAGS_vsyscall-sysenter.o = -m32 -Wa,-32
|
|
|
|
AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32
|