blob: aebd7a78984e8aa2e82b95579d33f8c754d9586d [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
Ingo Molnar408894e2006-01-09 15:59:20 -080013obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070014obj-$(CONFIG_FUTEX) += futex.o
15obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
16obj-$(CONFIG_SMP) += cpu.o spinlock.o
Ingo Molnarfb1c8f92005-09-10 00:25:56 -070017obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018obj-$(CONFIG_UID16) += uid16.o
19obj-$(CONFIG_MODULES) += module.o
Adrian Bunkfd279192006-01-16 22:13:59 -080020obj-$(CONFIG_OBSOLETE_INTERMODULE) += intermodule.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021obj-$(CONFIG_KALLSYMS) += kallsyms.o
22obj-$(CONFIG_PM) += power/
23obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Eric W. Biedermandc009d92005-06-25 14:57:52 -070024obj-$(CONFIG_KEXEC) += kexec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070025obj-$(CONFIG_COMPAT) += compat.o
26obj-$(CONFIG_CPUSETS) += cpuset.o
27obj-$(CONFIG_IKCONFIG) += configs.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070028obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
29obj-$(CONFIG_AUDIT) += audit.o
30obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
31obj-$(CONFIG_KPROBES) += kprobes.o
32obj-$(CONFIG_SYSFS) += ksysfs.o
Ingo Molnar8446f1d2005-09-06 15:16:27 -070033obj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070034obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
35obj-$(CONFIG_SECCOMP) += seccomp.o
Paul E. McKenneya241ec62005-10-30 15:03:12 -080036obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
Jens Axboeb86ff9812006-03-23 19:56:55 +010037obj-$(CONFIG_RELAY) += relay.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Anton Blanchard7d12e522005-05-05 16:15:11 -070039ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070040# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
41# needed for x86 only. Why this used to be enabled for all architectures is beyond
42# me. I suspect most platforms don't need this, but until we know that for sure
43# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
44# to get a correct value for the wait-channel (WCHAN in ps). --davidm
45CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
46endif
47
48$(obj)/configs.o: $(obj)/config_data.h
49
50# config_data.h contains the same information as ikconfig.h but gzipped.
51# Info from config_data can be extracted from /proc/config*
52targets += config_data.gz
53$(obj)/config_data.gz: .config FORCE
54 $(call if_changed,gzip)
55
56quiet_cmd_ikconfiggz = IKCFG $@
57 cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
58targets += config_data.h
59$(obj)/config_data.h: $(obj)/config_data.gz FORCE
60 $(call if_changed,ikconfiggz)