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...
11 $(CC
) $(AFLAGS
) -traditional
-c
$< -o
$*.o
13 all: kernel.o head.o init_task.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
29 obj-y
+= pci-pc.o pci-irq.o
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
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