1# 2# Makefile for the kernel pcmcia subsystem (c/o David Hinds) 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 inherited from the 9# parent makes.. 10 11O_TARGET := pcmcia.o 12 13export-objs := ds.o cs.o yenta.o pci_socket.o 14 15list-multi := pcmcia_core.o yenta_socket.o 16 17yenta_socket-objs := pci_socket.o yenta.o 18pcmcia_core-objs := cistpl.o rsrc_mgr.o bulkmem.o cs.o 19 20ifeq ($(CONFIG_CARDBUS),y) 21 pcmcia_core-objs += cardbus.o 22endif 23 24ifeq ($(CONFIG_PCMCIA),y) 25 obj-y := cistpl.o rsrc_mgr.o bulkmem.o ds.o cs.o 26 ifeq ($(CONFIG_CARDBUS),y) 27 obj-y += cardbus.o yenta.o pci_socket.o 28 endif 29 ifeq ($(CONFIG_I82365),y) 30 obj-y += i82365.o 31 endif 32 ifeq ($(CONFIG_I82092),y) 33 obj-y += i82092.o 34 endif 35 ifeq ($(CONFIG_TCIC),y) 36 obj-y += tcic.o 37 endif 38 ifeq ($(CONFIG_HD64465_PCMCIA),y) 39 obj-y += hd64465_ss.o 40 endif 41else 42 ifeq ($(CONFIG_PCMCIA),m) 43 obj-m := pcmcia_core.o ds.o 44 ifeq ($(CONFIG_I82365),y) 45 obj-m += i82365.o 46 endif 47 ifeq ($(CONFIG_I82092),y) 48 obj-m += i82092.o 49 endif 50 ifeq ($(CONFIG_TCIC),y) 51 obj-m += tcic.o 52 endif 53 ifeq ($(CONFIG_HD64465_PCMCIA),m) 54 obj-m += hd64465_ss.o 55 endif 56 ifeq ($(CONFIG_CARDBUS),y) 57 obj-m += yenta_socket.o 58 endif 59 endif 60endif 61 62obj-$(CONFIG_PCMCIA_AU1X00) += au1x00_ss.o 63au1000_ss-objs-y := au1000_generic.o 64au1000_ss-objs-$(CONFIG_PCMCIA_PB1X00) += au1000_pb1x00.o 65au1000_ss-objs-$(CONFIG_PCMCIA_DB1X00) += au1000_db1x00.o 66au1000_ss-objs-$(CONFIG_PCMCIA_XXS1500) += au1000_xxs1500.o 67 68obj-$(CONFIG_PCMCIA_SA1100) += sa1100_cs.o 69obj-$(CONFIG_PCMCIA_M8XX) += m8xx_pcmcia.o 70obj-$(CONFIG_PCMCIA_SIBYTE) += sibyte_generic.o 71 72sa1100_cs-objs-y := sa1100_generic.o 73sa1100_cs-objs-$(CONFIG_SA1100_ADSBITSY) += sa1100_adsbitsy.o sa1111_generic.o 74sa1100_cs-objs-$(CONFIG_SA1100_ASSABET) += sa1100_assabet.o 75sa1100_cs-objs-$(CONFIG_ASSABET_NEPONSET) += sa1100_neponset.o sa1111_generic.o 76sa1100_cs-objs-$(CONFIG_SA1100_BADGE4) += sa1100_badge4.o sa1111_generic.o 77sa1100_cs-objs-$(CONFIG_SA1100_CERF) += sa1100_cerf.o 78sa1100_cs-objs-$(CONFIG_SA1100_FLEXANET) += sa1100_flexanet.o 79sa1100_cs-objs-$(CONFIG_SA1100_FREEBIRD) += sa1100_freebird.o 80sa1100_cs-objs-$(CONFIG_SA1100_GRAPHICSMASTER) += sa1100_graphicsmaster.o sa1111_generic.o 81sa1100_cs-objs-$(CONFIG_SA1100_GRAPHICSCLIENT) += sa1100_graphicsclient.o 82sa1100_cs-objs-$(CONFIG_SA1100_H3600) += sa1100_h3600.o 83sa1100_cs-objs-$(CONFIG_SA1100_JORNADA720) += sa1100_jornada720.o sa1111_generic.o 84sa1100_cs-objs-$(CONFIG_SA1100_PANGOLIN) += sa1100_pangolin.o 85sa1100_cs-objs-$(CONFIG_SA1100_PFS168) += sa1100_pfs168.o sa1111_generic.o 86sa1100_cs-objs-$(CONFIG_SA1100_SHANNON) += sa1100_shannon.o 87sa1100_cs-objs-$(CONFIG_SA1100_SIMPAD) += sa1100_simpad.o 88sa1100_cs-objs-$(CONFIG_SA1100_STORK) += sa1100_stork.o 89sa1100_cs-objs-$(CONFIG_SA1100_XP860) += sa1100_xp860.o sa1111_generic.o 90sa1100_cs-objs-$(CONFIG_SA1100_YOPY) += sa1100_yopy.o 91 92obj-$(CONFIG_PCMCIA_VRC4173) += vrc4173_cardu.o 93 94include $(TOPDIR)/Rules.make 95 96pcmcia_core.o: $(pcmcia_core-objs) 97 $(LD) $(LD_RFLAG) -r -o $@ $(pcmcia_core-objs) 98 99sa1100_cs.o: $(sa1100_cs-objs-y) 100 $(LD) -r -o $@ $(sa1100_cs-objs-y) 101 102au1x00_ss.o: $(au1000_ss-objs-y) 103 $(LD) -r -o $@ $(au1000_ss-objs-y) 104 105yenta_socket.o: $(yenta_socket-objs) 106 $(LD) $(LD_RFLAG) -r -o $@ $(yenta_socket-objs) 107