Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next
[linux-2.6-block.git] / kernel / Makefile
CommitLineData
1da177e4
LT
1#
2# Makefile for the linux kernel.
3#
4
029632fb 5obj-y = fork.o exec_domain.o panic.o printk.o \
68f4f1ec 6 cpu.o exit.o itimer.o time.o softirq.o resource.o \
afa588b2 7 sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \
1da177e4 8 signal.o sys.o kmod.o workqueue.o pid.o \
e260be67 9 rcupdate.o extable.o params.o posix-timers.o \
c0a31329 10 kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
64ac24e7 11 hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
391e43da 12 notifier.o ksysfs.o cred.o \
029632fb
PZ
13 async.o range.o groups.o
14
606576ce 15ifdef CONFIG_FUNCTION_TRACER
6ec56232
SR
16# Do not trace debug files and internal ftrace files
17CFLAGS_REMOVE_lockdep.o = -pg
18CFLAGS_REMOVE_lockdep_proc.o = -pg
19CFLAGS_REMOVE_mutex-debug.o = -pg
20CFLAGS_REMOVE_rtmutex-debug.o = -pg
21CFLAGS_REMOVE_cgroup-debug.o = -pg
e360adbe 22CFLAGS_REMOVE_irq_work.o = -pg
1d09daa5
SR
23endif
24
391e43da
PZ
25obj-y += sched/
26
8174f150 27obj-$(CONFIG_FREEZER) += freezer.o
b03f6489 28obj-$(CONFIG_PROFILING) += profile.o
88f458e4 29obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
8637c099 30obj-$(CONFIG_STACKTRACE) += stacktrace.o
ad596171 31obj-y += time/
408894ee 32obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
fbb9ce95 33obj-$(CONFIG_LOCKDEP) += lockdep.o
a8f24a39
IM
34ifeq ($(CONFIG_PROC_FS),y)
35obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
36endif
1da177e4 37obj-$(CONFIG_FUTEX) += futex.o
34f192c6
IM
38ifeq ($(CONFIG_COMPAT),y)
39obj-$(CONFIG_FUTEX) += futex_compat.o
40endif
23f78d4a 41obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
e7eebaf6 42obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
61a87122 43obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
1da177e4 44obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
351f8f8e 45obj-$(CONFIG_SMP) += smp.o
9316fcac 46ifneq ($(CONFIG_SMP),y)
53ce3d95
AM
47obj-y += up.o
48endif
68f4f1ec 49obj-$(CONFIG_SMP) += spinlock.o
fb1c8f93 50obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
8a25d5de 51obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
1da177e4
LT
52obj-$(CONFIG_UID16) += uid16.o
53obj-$(CONFIG_MODULES) += module.o
54obj-$(CONFIG_KALLSYMS) += kallsyms.o
55obj-$(CONFIG_PM) += power/
42f5e039 56obj-$(CONFIG_FREEZER) += power/
1da177e4 57obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
dc009d92 58obj-$(CONFIG_KEXEC) += kexec.o
6dab2778 59obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
1da177e4 60obj-$(CONFIG_COMPAT) += compat.o
ddbcc7e8 61obj-$(CONFIG_CGROUPS) += cgroup.o
dc52ddc0 62obj-$(CONFIG_CGROUP_FREEZER) += cgroup_freezer.o
1da177e4 63obj-$(CONFIG_CPUSETS) += cpuset.o
aee16ce7
PE
64obj-$(CONFIG_UTS_NS) += utsname.o
65obj-$(CONFIG_USER_NS) += user_namespace.o
74bd59bb 66obj-$(CONFIG_PID_NS) += pid_namespace.o
1da177e4 67obj-$(CONFIG_IKCONFIG) += configs.o
e552b661 68obj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o
bbf1bb3e 69obj-$(CONFIG_SMP) += stop_machine.o
8c1c9356 70obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
939a67fc 71obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
1da177e4 72obj-$(CONFIG_AUDITSYSCALL) += auditsc.o
939a67fc 73obj-$(CONFIG_AUDIT_WATCH) += audit_watch.o
74c3cbe3 74obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
939a67fc 75obj-$(CONFIG_GCOV_KERNEL) += gcov/
1da177e4 76obj-$(CONFIG_KPROBES) += kprobes.o
c4338209 77obj-$(CONFIG_KGDB) += debug/
e162b39a 78obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o
58687acb 79obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o
1da177e4
LT
80obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
81obj-$(CONFIG_SECCOMP) += seccomp.o
a241ec65 82obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
64db4cff 83obj-$(CONFIG_TREE_RCU) += rcutree.o
f41d911f 84obj-$(CONFIG_TREE_PREEMPT_RCU) += rcutree.o
64db4cff 85obj-$(CONFIG_TREE_RCU_TRACE) += rcutree_trace.o
9b1d82fa 86obj-$(CONFIG_TINY_RCU) += rcutiny.o
a57eb940 87obj-$(CONFIG_TINY_PREEMPT_RCU) += rcutiny.o
b86ff981 88obj-$(CONFIG_RELAY) += relay.o
39732acd 89obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
ca74e92b 90obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
f3cef7a9 91obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
97e1c18e 92obj-$(CONFIG_TRACEPOINTS) += tracepoint.o
9745512c 93obj-$(CONFIG_LATENCYTOP) += latencytop.o
1fcccbac
DH
94obj-$(CONFIG_BINFMT_ELF) += elfcore.o
95obj-$(CONFIG_COMPAT_BINFMT_ELF) += elfcore.o
96obj-$(CONFIG_BINFMT_ELF_FDPIC) += elfcore.o
606576ce 97obj-$(CONFIG_FUNCTION_TRACER) += trace/
bc0c38d1 98obj-$(CONFIG_TRACING) += trace/
56449f43 99obj-$(CONFIG_X86_DS) += trace/
1155de47 100obj-$(CONFIG_RING_BUFFER) += trace/
870915e0 101obj-$(CONFIG_TRACEPOINTS) += trace/
e360adbe 102obj-$(CONFIG_IRQ_WORK) += irq_work.o
ab10023e 103obj-$(CONFIG_CPU_PM) += cpu_pm.o
fae85b7c
BP
104
105obj-$(CONFIG_PERF_EVENTS) += events/
106
7a041097 107obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
16295bec 108obj-$(CONFIG_PADATA) += padata.o
93a72052 109obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
b77f0f3c 110obj-$(CONFIG_JUMP_LABEL) += jump_label.o
1da177e4 111
1da177e4
LT
112$(obj)/configs.o: $(obj)/config_data.h
113
114# config_data.h contains the same information as ikconfig.h but gzipped.
115# Info from config_data can be extracted from /proc/config*
116targets += config_data.gz
41263fc6 117$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
1da177e4
LT
118 $(call if_changed,gzip)
119
e78e8f2d 120 filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;")
1da177e4
LT
121targets += config_data.h
122$(obj)/config_data.h: $(obj)/config_data.gz FORCE
e78e8f2d 123 $(call filechk,ikconfiggz)
bdc80787
PA
124
125$(obj)/time.o: $(obj)/timeconst.h
126
127quiet_cmd_timeconst = TIMEC $@
128 cmd_timeconst = $(PERL) $< $(CONFIG_HZ) > $@
129targets += timeconst.h
130$(obj)/timeconst.h: $(src)/timeconst.pl FORCE
131 $(call if_changed,timeconst)