blob: 14f4d45e0ae95fbdeb4fe40d4815b495ec3d571f [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 \
Paul E. McKenney621934e2006-10-04 02:17:02 -070011 hrtimer.o rwsem.o latency.o nsproxy.o srcu.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Ingo Molnar8637c092006-07-03 00:24:38 -070013obj-$(CONFIG_STACKTRACE) += stacktrace.o
john stultzad596172006-06-26 00:25:06 -070014obj-y += time/
Ingo Molnar408894e2006-01-09 15:59:20 -080015obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Ingo Molnarfbb9ce952006-07-03 00:24:50 -070016obj-$(CONFIG_LOCKDEP) += lockdep.o
Ingo Molnara8f24a32006-07-03 00:24:52 -070017ifeq ($(CONFIG_PROC_FS),y)
18obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
19endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070020obj-$(CONFIG_FUTEX) += futex.o
Ingo Molnar34f192c2006-03-27 01:16:24 -080021ifeq ($(CONFIG_COMPAT),y)
22obj-$(CONFIG_FUTEX) += futex_compat.o
23endif
Ingo Molnar23f78d42006-06-27 02:54:53 -070024obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
Ingo Molnare7eebaf2006-06-27 02:54:55 -070025obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
Thomas Gleixner61a87122006-06-27 02:54:56 -070026obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070027obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
28obj-$(CONFIG_SMP) += cpu.o spinlock.o
Ingo Molnarfb1c8f92005-09-10 00:25:56 -070029obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
Ingo Molnar8a25d5d2006-07-03 00:24:54 -070030obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070031obj-$(CONFIG_UID16) += uid16.o
32obj-$(CONFIG_MODULES) += module.o
33obj-$(CONFIG_KALLSYMS) += kallsyms.o
34obj-$(CONFIG_PM) += power/
35obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Eric W. Biedermandc009d92005-06-25 14:57:52 -070036obj-$(CONFIG_KEXEC) += kexec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070037obj-$(CONFIG_COMPAT) += compat.o
38obj-$(CONFIG_CPUSETS) += cpuset.o
39obj-$(CONFIG_IKCONFIG) += configs.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070040obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
David Woodhousefe7752b2005-12-15 18:33:52 +000041obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
43obj-$(CONFIG_KPROBES) += kprobes.o
44obj-$(CONFIG_SYSFS) += ksysfs.o
Ingo Molnar8446f1d2005-09-06 15:16:27 -070045obj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070046obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
47obj-$(CONFIG_SECCOMP) += seccomp.o
Paul E. McKenneya241ec62005-10-30 15:03:12 -080048obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
Jens Axboeb86ff9812006-03-23 19:56:55 +010049obj-$(CONFIG_RELAY) += relay.o
Serge E. Hallyn4865ecf2006-10-02 02:18:14 -070050obj-$(CONFIG_UTS_NS) += utsname.o
Shailabh Nagarca74e922006-07-14 00:24:36 -070051obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
Jay Lanf3cef7a2006-09-30 23:28:55 -070052obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070053
Anton Blanchard7d12e522005-05-05 16:15:11 -070054ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070055# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
56# needed for x86 only. Why this used to be enabled for all architectures is beyond
57# me. I suspect most platforms don't need this, but until we know that for sure
58# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
59# to get a correct value for the wait-channel (WCHAN in ps). --davidm
60CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
61endif
62
63$(obj)/configs.o: $(obj)/config_data.h
64
65# config_data.h contains the same information as ikconfig.h but gzipped.
66# Info from config_data can be extracted from /proc/config*
67targets += config_data.gz
68$(obj)/config_data.gz: .config FORCE
69 $(call if_changed,gzip)
70
71quiet_cmd_ikconfiggz = IKCFG $@
72 cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
73targets += config_data.h
74$(obj)/config_data.h: $(obj)/config_data.gz FORCE
75 $(call if_changed,ikconfiggz)