blob: ff4dc02ce17027f22dc4bf4027075653ee7f42bb [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 \
9 rcupdate.o intermodule.o extable.o params.o posix-timers.o \
10 kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o
11
12obj-$(CONFIG_FUTEX) += futex.o
13obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
14obj-$(CONFIG_SMP) += cpu.o spinlock.o
Ingo Molnarfb1c8f92005-09-10 00:25:56 -070015obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016obj-$(CONFIG_UID16) += uid16.o
17obj-$(CONFIG_MODULES) += module.o
18obj-$(CONFIG_KALLSYMS) += kallsyms.o
19obj-$(CONFIG_PM) += power/
20obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
Eric W. Biedermandc009d92005-06-25 14:57:52 -070021obj-$(CONFIG_KEXEC) += kexec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-$(CONFIG_COMPAT) += compat.o
23obj-$(CONFIG_CPUSETS) += cpuset.o
24obj-$(CONFIG_IKCONFIG) += configs.o
25obj-$(CONFIG_IKCONFIG_PROC) += configs.o
26obj-$(CONFIG_STOP_MACHINE) += stop_machine.o
27obj-$(CONFIG_AUDIT) += audit.o
28obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
29obj-$(CONFIG_KPROBES) += kprobes.o
30obj-$(CONFIG_SYSFS) += ksysfs.o
Ingo Molnar8446f1d2005-09-06 15:16:27 -070031obj-$(CONFIG_DETECT_SOFTLOCKUP) += softlockup.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070032obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
Vivek Goyal60e64d42005-06-25 14:58:19 -070033obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070034obj-$(CONFIG_SECCOMP) += seccomp.o
35
Anton Blanchard7d12e522005-05-05 16:15:11 -070036ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070037# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
38# needed for x86 only. Why this used to be enabled for all architectures is beyond
39# me. I suspect most platforms don't need this, but until we know that for sure
40# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
41# to get a correct value for the wait-channel (WCHAN in ps). --davidm
42CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
43endif
44
45$(obj)/configs.o: $(obj)/config_data.h
46
47# config_data.h contains the same information as ikconfig.h but gzipped.
48# Info from config_data can be extracted from /proc/config*
49targets += config_data.gz
50$(obj)/config_data.gz: .config FORCE
51 $(call if_changed,gzip)
52
53quiet_cmd_ikconfiggz = IKCFG $@
54 cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
55targets += config_data.h
56$(obj)/config_data.h: $(obj)/config_data.gz FORCE
57 $(call if_changed,ikconfiggz)