# $Id: Makefile,v 1.10 2002/12/20 20:11:50 tld Exp $
# Makefile for the BRECIS Linux kernel 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 inherited from the
# parent makes..
#

O_TARGET := brecis_drv.o

obj-y	 += dma_bcopy.o

obj-$(CONFIG_BRECIS_SEC) += brecis_sec.o

# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.

export-objs     := dma_bcopy.o brecis_sec_v1.o brecis_sec_v2.o

# build tdmsdma only if it exists, as signaled by rules in make.me
-include tdmsdma/make.me
-include vpm/make.me
# 79063 could be a configure option, but for now just include it if BRECIS
subdir-m	+= lg79063

list-multi	:= brecis_sec.o	

brecis_sec-objs := brecis_sec_v1.o brecis_sec_v2.o


include $(TOPDIR)/Rules.make

brecis_sec.o: $(brecis_sec-objs)
	$(LD) -r -o $@ $(brecis_sec-objs)

fastdep:

.DELETE_ON_ERROR:

