patch-2.1.33 linux/drivers/pnp/Makefile

Next file: linux/drivers/pnp/TODO-parport
Previous file: linux/drivers/pnp/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.32/linux/drivers/pnp/Makefile linux/drivers/pnp/Makefile
@@ -0,0 +1,45 @@
+#
+# Makefile for the kernel Plug-and-Play device drivers.
+#
+# 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..
+#
+# Note 3! Plug and Play is the Borg.  We have assimilated some other
+# drivers in the `char', `net' and `scsi' directories, but left them
+# there to allay suspicion.
+
+SUB_DIRS     := 
+MOD_SUB_DIRS := $(SUB_DIRS)
+ALL_SUB_DIRS := $(SUB_DIRS)
+
+L_TARGET := pnp.a
+MX_OBJS  :=
+LX_OBJS  := 
+MI_OBJS  :=
+MIX_OBJS :=
+
+ifeq ($(CONFIG_PNP_PARPORT),y)
+  L_OBJS += parport_share.o parport_procfs.o
+  ifeq ($(CONFIG_PNP_PARPORT_AUTOPROBE),y)
+    L_OBJS += parport_probe.o
+  endif
+  LX_OBJS += parport_init.o
+else
+  ifeq ($(CONFIG_PNP_PARPORT),m)
+    MI_OBJS += parport_share.o parport_procfs.o
+    ifeq ($(CONFIG_PNP_PARPORT_AUTOPROBE),y)
+      MI_OBJS += parport_probe.o
+    endif
+    MIX_OBJS += parport_init.o
+    M_OBJS += parport.o
+  endif
+endif
+
+include $(TOPDIR)/Rules.make
+
+parport.o: $(MI_OBJS) $(MIX_OBJS)
+	$(LD) $(LD_RFLAG) -r -o $@ $(MI_OBJS) $(MIX_OBJS)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov