diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
commit | 6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch) | |
tree | 0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /arch/i386/kernel/Makefile | |
parent | ecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff) |
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine
status unknown.
Diffstat (limited to 'arch/i386/kernel/Makefile')
-rw-r--r-- | arch/i386/kernel/Makefile | 105 |
1 files changed, 28 insertions, 77 deletions
diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile index 9e9b76848..c31838c8e 100644 --- a/arch/i386/kernel/Makefile +++ b/arch/i386/kernel/Makefile @@ -13,87 +13,38 @@ all: kernel.o head.o init_task.o O_TARGET := kernel.o -O_OBJS := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \ - ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \ - pci-dma.o -OX_OBJS := i386_ksyms.o -MX_OBJS := -ifdef CONFIG_PCI -O_OBJS += pci-i386.o -ifdef CONFIG_VISWS -O_OBJS += pci-visws.o -else -O_OBJS += pci-pc.o pci-irq.o -endif -endif - -ifdef CONFIG_MCA -OX_OBJS += mca.o -endif - -ifeq ($(CONFIG_MTRR),y) -OX_OBJS += mtrr.o -else - ifeq ($(CONFIG_MTRR),m) - MX_OBJS += mtrr.o - endif -endif +export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o -ifeq ($(CONFIG_X86_MSR),y) -OX_OBJS += msr.o -else - ifeq ($(CONFIG_X86_MSR),m) - MX_OBJS += msr.o - endif -endif +obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \ + ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \ + pci-dma.o i386_ksyms.o -ifeq ($(CONFIG_X86_CPUID),y) -OX_OBJS += cpuid.o -else - ifeq ($(CONFIG_X86_CPUID),m) - MX_OBJS += cpuid.o - endif -endif -ifeq ($(CONFIG_MICROCODE),y) -OX_OBJS += microcode.o -else - ifeq ($(CONFIG_MICROCODE),m) - MX_OBJS += microcode.o - endif -endif - -ifeq ($(CONFIG_ACPI),y) -O_OBJS += acpi.o -else - ifeq ($(CONFIG_ACPI),m) - M_OBJS += acpi.o - endif -endif - -ifeq ($(CONFIG_APM),y) -O_OBJS += apm.o +ifdef CONFIG_PCI +obj-y += pci-i386.o +ifdef CONFIG_VISWS +obj-y += pci-visws.o else - ifeq ($(CONFIG_APM),m) - M_OBJS += apm.o - endif -endif - -ifdef CONFIG_SMP -O_OBJS += smp.o smpboot.o trampoline.o -endif - -ifdef CONFIG_X86_LOCAL_APIC -O_OBJS += apic.o -endif - -ifdef CONFIG_X86_IO_APIC -O_OBJS += io_apic.o mpparse.o -endif - -ifdef CONFIG_X86_VISWS_APIC -O_OBJS += visws_apic.o -endif +obj-y += pci-pc.o pci-irq.o +endif +endif + +obj-$(CONFIG_MCA) += mca.o +obj-$(CONFIG_MTRR) += mtrr.o +obj-$(CONFIG_X86_MSR) += msr.o +obj-$(CONFIG_X86_CPUID) += cpuid.o +obj-$(CONFIG_MICROCODE) += microcode.o +obj-$(CONFIG_ACPI) += acpi.o +obj-$(CONFIG_APM) += apm.o +obj-$(CONFIG_SMP) += smp.o smpboot.o trampoline.o +obj-$(CONFIG_X86_LOCAL_APIC) += apic.o +obj-$(CONFIG_X86_IO_APIC) += io_apic.o mpparse.o +obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o + +O_OBJS := $(filter-out $(export-objs), $(obj-y)) +OX_OBJS := $(filter $(export-objs), $(obj-y)) +M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m))) +MX_OBJS := $(sort $(filter $(export-objs), $(obj-m))) include $(TOPDIR)/Rules.make |