#
# Makefile for the TiVo specific kernel interface routines
# under Linux.
#
# 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).

USE_STANDARD_AS_RULE := true

all: tivo.o

O_TARGET    := tivo.o

export-objs := fpga-core.o fpga-ide.o bcm-time.o bcm-irq-p0.o bcm2-time.o \
	       bcm2-irq.o bcm2-ide.o pciutil.o

obj-y       := reset.o tivo-setup.o proc-watchpoint.o

obj-$(CONFIG_REMOTE_DEBUG) += debug.o


obj-$(CONFIG_TIVO_NGP0) += bcm-bcache.o bcm-setup.o bcm-int.o bcm-time.o \
                           fpga-core.o bcm-irq-p0.o bcm-pci-p0.o \
                           bcm-serial-p0.o

obj-$(CONFIG_TIVO_UMA2C) += bcm-int.o bcm2-setup.o bcm2-irq.o bcm2-time.o \
			    bcm-serial-p0.o pciutil.o

ifdef CONFIG_BLK_DEV_IDE
  ifdef CONFIG_TIVO_FPGA_IDE
    obj-$(CONFIG_TIVO_NGP0) += fpga-ide.o
  else
    obj-$(CONFIG_TIVO_NGP0) += bcm-ide.o
  endif
  obj-$(CONFIG_TIVO_UMA2C) += bcm2-ide.o
endif

bcm-int.o:  bcm-int.S

clean:

include $(TOPDIR)/Rules.make
