#
# 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
  ifeq ($(CONFIG_PROC_FS),y)
    L_OBJS += parport_procfs.o
  endif
  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
    ifneq ($(CONFIG_PROC_FS),n) 
      MI_OBJS += parport_procfs.o
    endif
    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)
