Import 2.3.12pre3
[davej-history.git] / arch / i386 / kernel / Makefile
blob7aba6fdc9948e2aac4fb038447db175dcfe192bc
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 .S.o:
11 $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
13 all: kernel.o head.o init_task.o
15 O_TARGET := kernel.o
16 O_OBJS := process.o signal.o entry.o traps.o irq.o vm86.o \
17 ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o
18 OX_OBJS := i386_ksyms.o
19 MX_OBJS :=
21 ifdef CONFIG_PCI
22 O_OBJS += bios32.o
23 endif
25 ifdef CONFIG_MCA
26 O_OBJS += mca.o
27 endif
29 ifeq ($(CONFIG_MTRR),y)
30 OX_OBJS += mtrr.o
31 else
32 ifeq ($(CONFIG_MTRR),m)
33 MX_OBJS += mtrr.o
34 endif
35 endif
37 ifdef CONFIG_APM
38 OX_OBJS += apm.o
39 endif
41 ifdef CONFIG_SMP
42 O_OBJS += smp.o trampoline.o
43 endif
45 ifdef CONFIG_X86_IO_APIC
46 O_OBJS += io_apic.o
47 endif
49 ifdef CONFIG_X86_VISWS_APIC
50 O_OBJS += visws_apic.o
51 endif
53 head.o: head.S
54 $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $*.S -o $*.o
56 include $(TOPDIR)/Rules.make