- Stephen Rothwell: APM updates
[davej-history.git] / arch / i386 / kernel / Makefile
bloba8ea6130678250f6de1da6442fd40d21f970c094
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) $(AFLAGS) -traditional -c $< -o $*.o
13 all: kernel.o head.o init_task.o
15 O_TARGET := kernel.o
17 export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o
19 obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \
20 ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \
21 pci-dma.o i386_ksyms.o i387.o bluesmoke.o
24 ifdef CONFIG_PCI
25 obj-y += pci-i386.o
26 ifdef CONFIG_VISWS
27 obj-y += pci-visws.o
28 else
29 obj-y += pci-pc.o pci-irq.o
30 endif
31 endif
33 obj-$(CONFIG_MCA) += mca.o
34 obj-$(CONFIG_MTRR) += mtrr.o
35 obj-$(CONFIG_X86_MSR) += msr.o
36 obj-$(CONFIG_X86_CPUID) += cpuid.o
37 obj-$(CONFIG_MICROCODE) += microcode.o
38 obj-$(CONFIG_APM) += apm.o
39 obj-$(CONFIG_SMP) += smp.o smpboot.o trampoline.o
40 obj-$(CONFIG_X86_LOCAL_APIC) += apic.o
41 obj-$(CONFIG_X86_IO_APIC) += io_apic.o mpparse.o
42 obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o
44 # if the interpreter is used, it overrides acpi.c
45 ifneq ($(CONFIG_ACPI_INTERPRETER),y)
46 obj-$(CONFIG_ACPI) += acpi.o
47 endif
49 O_OBJS := $(filter-out $(export-objs), $(obj-y))
50 OX_OBJS := $(filter $(export-objs), $(obj-y))
51 M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m)))
52 MX_OBJS := $(sort $(filter $(export-objs), $(obj-m)))
54 include $(TOPDIR)/Rules.make