1# 2# Makefile for the linux kernel. 3# 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). 7# 8# Note 2! The CFLAGS definitions are now in the main makefile... 9 10USE_STANDARD_AS_RULE := true 11 12ifdef CONFIG_PPC64BRIDGE 13EXTRA_AFLAGS := -Wa,-mppc64bridge 14endif 15ifdef CONFIG_40x 16EXTRA_AFLAGS := -Wa,-m405 17endif 18 19# Extra CFLAGS so we don't have to do relative includes 20CFLAGS_pmac_setup.o += -I$(TOPDIR)/drivers/scsi -I$(TOPDIR)/fs/partitions \ 21 -I$(TOPDIR)/arch/$(ARCH)/mm 22CFLAGS_spruce_setup.o += -I$(TOPDIR)/arch/ppc/kernel 23CFLAGS_spruce_pci.o += -I$(TOPDIR)/arch/ppc/kernel 24CFLAGS_pal4_setup.o += -I$(TOPDIR)/arch/ppc/kernel 25CFLAGS_pal4_pci.o += -I$(TOPDIR)/arch/ppc/kernel 26 27O_TARGET := platform.o 28 29export-objs := prep_setup.o ibm440gp.o ibm440gx.o 30 31obj-$(CONFIG_405GP) += ibm405gp.o 32obj-$(CONFIG_440GP) += ibm440gp.o 33obj-$(CONFIG_440GX) += ibm440gx.o 34 35obj-$(CONFIG_CPCI405) += cpci405.o 36obj-$(CONFIG_EP405) += ep405.o 37obj-$(CONFIG_REDWOOD_5) += redwood5.o ibmstb4.o 38obj-$(CONFIG_REDWOOD_6) += redwood6.o ibmstbx25.o 39obj-$(CONFIG_EBONY) += ebony.o 40obj-$(CONFIG_OCOTEA) += ocotea.o 41obj-$(CONFIG_WALNUT) += walnut.o 42 43obj-$(CONFIG_APUS) += apus_setup.o 44ifeq ($(CONFIG_APUS),y) 45obj-$(CONFIG_PCI) += apus_pci.o 46endif 47 48obj-$(CONFIG_ALL_PPC) += pmac_pic.o pmac_setup.o pmac_time.o \ 49 pmac_feature.o pmac_pci.o chrp_setup.o\ 50 chrp_time.o chrp_pci.o prep_pci.o \ 51 prep_time.o prep_setup.o pmac_sleep.o \ 52 pmac_nvram.o 53obj-$(CONFIG_PMAC_BACKLIGHT) += pmac_backlight.o 54obj-$(CONFIG_PREP_RESIDUAL) += residual.o 55obj-$(CONFIG_GEMINI) += gemini_pci.o gemini_setup.o gemini_prom.o 56obj-$(CONFIG_LOPEC) += lopec_setup.o lopec_pci.o 57obj-$(CONFIG_PAL4) += pal4_setup.o pal4_pci.o cpc700_pic.o 58obj-$(CONFIG_PPLUS) += pplus_pci.o pplus_setup.o 59obj-$(CONFIG_PRPMC750) += prpmc750.o 60obj-$(CONFIG_SANDPOINT) += sandpoint.o 61obj-$(CONFIG_SPRUCE) += spruce_setup.o spruce_pci.o cpc700_pic.o 62 63ifeq ($(CONFIG_SMP),y) 64obj-$(CONFIG_ALL_PPC) += pmac_smp.o chrp_smp.o 65endif 66 67include $(TOPDIR)/Rules.make 68