commented early_printk patch because of rejects.
[linux-flexiantxendom0-3.2.10.git] / kernel / Makefile
1 #
2 # Makefile for the linux kernel.
3 #
4
5 obj-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
11 obj-$(CONFIG_FUTEX) += futex.o
12 obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
13 obj-$(CONFIG_SMP) += cpu.o
14 obj-$(CONFIG_UID16) += uid16.o
15 obj-$(CONFIG_MODULES) += ksyms.o module.o
16 obj-$(CONFIG_KALLSYMS) += kallsyms.o
17 obj-$(CONFIG_PM) += pm.o power/
18 obj-$(CONFIG_CPU_FREQ) += cpufreq.o
19 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
20 obj-$(CONFIG_COMPAT) += compat.o
21 obj-$(CONFIG_IKCONFIG) += configs.o
22
23 # files to be removed upon make clean
24 clean-files := ikconfig.h
25
26 ifneq ($(CONFIG_IA64),y)
27 # According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
28 # needed for x86 only.  Why this used to be enabled for all architectures is beyond
29 # me.  I suspect most platforms don't need this, but until we know that for sure
30 # I turn this off for IA-64 only.  Andreas Schwab says it's also needed on m68k
31 # to get a correct value for the wait-channel (WCHAN in ps). --davidm
32 CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
33 endif
34
35 $(obj)/ikconfig.h: scripts/mkconfigs .config Makefile
36         $(CONFIG_SHELL) scripts/mkconfigs .config Makefile > $(obj)/ikconfig.h
37
38 $(obj)/configs.o: $(obj)/ikconfig.h $(obj)/configs.c \
39                 include/linux/version.h include/linux/compile.h