patch-2.3.19 linux/drivers/pcmcia/Makefile

Next file: linux/drivers/pcmcia/bulkmem.c
Previous file: linux/drivers/pcmcia/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/drivers/pcmcia/Makefile linux/drivers/pcmcia/Makefile
@@ -12,17 +12,28 @@
 MOD_SUB_DIRS := $(SUB_DIRS)
 ALL_SUB_DIRS := $(SUB_DIRS)
 
-O_TARGET := pcmcia.o
+MOD_LIST_NAME := PCMCIA_MODULES
 
-O_OBJS   := i82365.o tcic.o cistpl.o rsrc_mgr.o bulkmem.o
-OX_OBJS  := ds.o cs.o
-
-ifeq ($(CONFIG_CARDBUS),y)
-  O_OBJS += cardbus.o
+ifeq ($(CONFIG_PCMCIA),y)
+  O_OBJS   := i82365.o tcic.o 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
+  endif
 else
-  ifeq ($(CONFIG_CARDBUS),m)
-    MX_OBJS += cardbus.o
+  ifeq ($(CONFIG_PCMCIA),m)
+     M_OBJS   := i82365.o tcic.o pcmcia_core.o 
+     MX_OBJS  := ds.o
+     MIX_OBJS  := cs.o
+     CORE_OBJS := cistpl.o rsrc_mgr.o bulkmem.o cs.o
+     ifeq ($(CONFIG_CARDBUS),y)
+	CORE_OBJS += cardbus.o
+     endif
   endif
 endif
 
 include $(TOPDIR)/Rules.make
+
+pcmcia_core.o:  $(CORE_OBJS)
+	$(LD) $(LD_RFLAG) -r -o $@ $(CORE_OBJS)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)