blob: 56cb71007cd9a26277c4bc6c3a7873fe357e291e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
5EXTRA_AFLAGS := -traditional
6
Heiko Carstensab14de62007-02-05 21:18:37 +01007obj-y := bitmap.o traps.o time.o process.o base.o early.o \
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
Michael Holzheu0a87c5c2007-08-22 13:51:40 +02009 semaphore.o s390_ext.o debug.o irq.o ipl.o dis.o diag.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080011obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o)
12obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o)
13
Heiko Carstens0ad775d2005-11-07 00:59:12 -080014extra-y += head.o init_task.o vmlinux.lds
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
16obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
17obj-$(CONFIG_SMP) += smp.o
18
Al Viroc0803792006-08-31 19:02:42 -040019obj-$(CONFIG_AUDIT) += audit.o
20compat-obj-$(CONFIG_AUDIT) += compat_audit.o
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080021obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \
Heiko Carstensf84dfe82006-07-10 04:45:39 -070022 compat_wrapper.o compat_exec_domain.o \
Al Viroc0803792006-08-31 19:02:42 -040023 binfmt_elf32.o $(compat-obj-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025obj-$(CONFIG_VIRT_TIMER) += vtime.o
Heiko Carstens5bdc9b42006-07-03 00:24:41 -070026obj-$(CONFIG_STACKTRACE) += stacktrace.o
Michael Grundy4ba069b2006-09-20 15:58:39 +020027obj-$(CONFIG_KPROBES) += kprobes.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Heiko Carstenscf13f0e2005-06-25 14:58:11 -070029# Kexec part
30S390_KEXEC_OBJS := machine_kexec.o crash.o
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080031S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o)
Heiko Carstenscf13f0e2005-06-25 14:58:11 -070032obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS)
33
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#
35# This is just to get the dependencies...
36#
37binfmt_elf32.o: $(TOPDIR)/fs/binfmt_elf.c