blob: 82fb182f6f618421cb822aac8131914486b8a651 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the linux kernel.
3#
4
5obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
6 exit.o itimer.o time.o softirq.o resource.o \
7 sysctl.o capability.o ptrace.o timer.o user.o \
8 signal.o sys.o kmod.o workqueue.o pid.o \
Adrian Bunkfd279192006-01-16 22:13:59 -08009 rcupdate.o extable.o params.o posix-timers.o \
Thomas Gleixnerc0a31322006-01-09 20:52:32 -080010 kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
11 hrtimer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
john stultzad596172006-06-26 00:25:06 -070013obj-y += time/
Ingo Molnar408894e2006-01-09 15:59:20 -080014obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070015obj-$(CONFIG_FUTEX) += futex.o
Ingo Molnar34f192c2006-03-27 01:16:24 -080016ifeq ($(CONFIG_COMPAT),y)
17obj-$(CONFIG_FUTEX) += futex_compat.o
18endif
Ingo Molnar23f78d4a2006-06-27 02:54:53 -070019obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
Ingo Molnare7eebaf2006-06-27 02:54:55 -070020obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
Thomas Gleixner61a87122006-06-27 02:54:56 -070021obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
23obj-$(CONFIG_SMP) += cpu.o spinlock.o
Ingo Molnarfb1c8f92005-09-10 00:25:56 -070024obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070025obj-$(CONFIG_UID16) += uid16.o
26obj-$(CONFIG_MODULES) += module.o
27obj-$(CONFIG_KALLSYMS) += kallsyms.o
Jan Beulich4552d5d2006-06-26 13:57:28 +020028obj-$(CONFIG_STACK_UNWIND) += unwind.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070029obj-$(CONFIG_PM) += power/
30obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Eric W. Biedermandc009d92005-06-25 14:57:52 -070031obj-$(CONFIG_KEXEC) += kexec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070032obj-$(CONFIG_COMPAT) += compat.o
33obj-$(CONFIG_CPUSETS) += cpuset.o
34obj-$(CONFIG_IKCONFIG) += configs.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070035obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
David Woodhousefe7752b2005-12-15 18:33:52 +000036obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070037obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
38obj-$(CONFIG_KPROBES) += kprobes.o
39obj-$(CONFIG_SYSFS) += ksysfs.o
Ingo Molnar8446f1d2005-09-06 15:16:27 -070040obj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070041obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
42obj-$(CONFIG_SECCOMP) += seccomp.o
Paul E. McKenneya241ec62005-10-30 15:03:12 -080043obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
Jens Axboeb86ff9812006-03-23 19:56:55 +010044obj-$(CONFIG_RELAY) += relay.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Anton Blanchard7d12e522005-05-05 16:15:11 -070046ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070047# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
48# needed for x86 only. Why this used to be enabled for all architectures is beyond
49# me. I suspect most platforms don't need this, but until we know that for sure
50# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
51# to get a correct value for the wait-channel (WCHAN in ps). --davidm
52CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
53endif
54
55$(obj)/configs.o: $(obj)/config_data.h
56
57# config_data.h contains the same information as ikconfig.h but gzipped.
58# Info from config_data can be extracted from /proc/config*
59targets += config_data.gz
60$(obj)/config_data.gz: .config FORCE
61 $(call if_changed,gzip)
62
63quiet_cmd_ikconfiggz = IKCFG $@
64 cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
65targets += config_data.h
66$(obj)/config_data.h: $(obj)/config_data.gz FORCE
67 $(call if_changed,ikconfiggz)