- David Miller: sparc and net updates. Fix merge_segments.
[davej-history.git] / kernel / Makefile
blob311d66cb85cf93b962670d843262a2704e7fbbfe
2 # Makefile for the linux kernel.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
10 O_TARGET := kernel.o
11 O_OBJS = sched.o dma.o fork.o exec_domain.o panic.o printk.o \
12 module.o exit.o itimer.o info.o time.o softirq.o resource.o \
13 sysctl.o acct.o capability.o ptrace.o timer.o user.o
15 OX_OBJS += signal.o sys.o kmod.o context.o
17 ifeq ($(CONFIG_UID16),y)
18 O_OBJS += uid16.o
19 endif
21 ifeq ($(CONFIG_MODULES),y)
22 OX_OBJS += ksyms.o
23 endif
25 ifeq ($(CONFIG_PM),y)
26 OX_OBJS += pm.o
27 endif
29 ifneq ($(CONFIG_IA64),y)
30 # According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
31 # needed for x86 only. Why this used to be enabled for all architectures is beyond
32 # me. I suspect most platforms don't need this, but until we know that for sure
33 # I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
34 # to get a correct value for the wait-channel (WCHAN in ps). --davidm
35 CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
36 endif
38 include $(TOPDIR)/Rules.make