- Linus: drop support for old-style Makefiles entirely. Big.
[davej-history.git] / drivers / pcmcia / Makefile
blobb1fc61f68917433ef41e61dbbabd7634b9fd94a9
2 # Makefile for the kernel pcmcia subsystem (c/o David Hinds)
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 inherited from the
9 # parent makes..
11 O_TARGET := pcmcia.o
13 export-objs := ds.o cs.o cb_enabler.o yenta.o pci_socket.o
15 multi-list = pcmcia_core.o yenta_socket.o
17 yenta_socket-objs := pci_socket.o yenta.o
18 pcmcia_core-objs := cistpl.o rsrc_mgr.o bulkmem.o cs.o
19 ifeq ($(CONFIG_CARDBUS),y)
20 pcmcia_core-objs += cardbus.o
21 endif
23 ifeq ($(CONFIG_PCMCIA),y)
24 obj-y := cistpl.o rsrc_mgr.o bulkmem.o ds.o cs.o
25 ifeq ($(CONFIG_CARDBUS),y)
26 obj-y += cardbus.o cb_enabler.o yenta.o pci_socket.o
27 endif
28 ifeq ($(CONFIG_I82365),y)
29 obj-y += i82365.o
30 endif
31 ifeq ($(CONFIG_TCIC),y)
32 obj-y += tcic.o
33 endif
34 else
35 ifeq ($(CONFIG_PCMCIA),m)
36 obj-m := pcmcia_core.o ds.o
37 ifeq ($(CONFIG_I82365),y)
38 obj-m += i82365.o
39 endif
40 ifeq ($(CONFIG_TCIC),y)
41 obj-m += tcic.o
42 endif
43 ifeq ($(CONFIG_CARDBUS),y)
44 obj-m += yenta_socket.o cb_enabler.o
45 endif
46 endif
47 endif
49 include $(TOPDIR)/Rules.make
51 pcmcia_core.o: $(CORE_OBJS)
52 $(LD) $(LD_RFLAG) -r -o $@ $(CORE_OBJS)
54 yenta_socket.o: $(CARDBUS_OBJS)
55 $(LD) $(LD_RFLAG) -r -o $@ yenta.o pci_socket.o