summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/Makefile
blob: 6491ac4b0a555ca6eba3c30c2473515a31abe113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# Makefile for the kernel pcmcia subsystem (c/o David Hinds)
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now inherited from the
# parent makes..

SUB_DIRS     :=
MOD_SUB_DIRS := $(SUB_DIRS)
ALL_SUB_DIRS := $(SUB_DIRS)

ifeq ($(CONFIG_PCMCIA),y)
  O_OBJS   := cistpl.o rsrc_mgr.o bulkmem.o
  OX_OBJS  := ds.o cs.o
  O_TARGET := pcmcia.o
  ifeq ($(CONFIG_CARDBUS),y)
    O_OBJS += cardbus.o
    OX_OBJS += cb_enabler.o yenta.o pci_socket.o
  endif
  ifeq ($(CONFIG_I82365),y)
    O_OBJS += i82365.o
  endif
  ifeq ($(CONFIG_TCIC),y)
    O_OBJS += tcic.o
  endif
else
  ifeq ($(CONFIG_PCMCIA),m)
     M_OBJS   := pcmcia_core.o 
     MX_OBJS  := ds.o
     MIX_OBJS  := cs.o
     CORE_OBJS := cistpl.o rsrc_mgr.o bulkmem.o cs.o
    ifeq ($(CONFIG_I82365),y)
      M_OBJS += i82365.o
    endif
    ifeq ($(CONFIG_TCIC),y)
      M_OBJS += tcic.o
    endif
     ifeq ($(CONFIG_CARDBUS),y)
	M_OBJS += yenta_socket.o
	CORE_OBJS += cardbus.o
	CARDBUS_OBJS := pci_socket.o yenta.o
	OX_OBJS += pci_socket.o yenta.o
	MX_OBJS += cb_enabler.o
     endif
  endif
endif

include $(TOPDIR)/Rules.make

pcmcia_core.o:  $(CORE_OBJS)
	$(LD) $(LD_RFLAG) -r -o $@ $(CORE_OBJS)

yenta_socket.o: $(CARDBUS_OBJS)
	$(LD) $(LD_RFLAG) -r -o $@ yenta.o pci_socket.o