#
# Makefile for Madge Token Ring driver.
#

# The target object and module list name.

O_TARGET	:= mtok.o

# Objects that export symbols.

export-objs	:= 

# To use if driver has more than one file
list-multi := mtok.o

mtok-objs	:= madgetr.o at24.o config.o hc46.o pio.o knossosr.o \
	knos2r.o knos3r.o udmi.o util.o piotest.o knossosi.o decomp.o \
	knoscode.o fmplus.o 


# Object file lists.

obj-y	:=
obj-m	:=
obj-n	:=
obj-	:=

# Each configuration option enables a list of files.

obj-$(CONFIG_MTOK)		+= mtok.o
EXTRA_CFLAGS=-DEMBEDDED_MICRO_CODE=1

# The global Rules.make.

include $(TOPDIR)/Rules.make

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



MOD_SUB_DIRS := $(SUB_DIRS)
ALL_SUB_DIRS := $(SUB_DIRS)

O_TARGET := mtok.o
L_OBJS   := 
M_OBJS   :=
MOD_LIST_NAME := NET_MODULES

ifneq ($(CONFIG_MADGE_TR),n)
EXTRA_CFLAGS += -I. -I..
O_OBJS += pcibm2i.o piotest.o knossosi.o hebei.o smarti.o  opcitmsi.o
O_OBJS += decomp.o
O_OBJS += knoscode.o fmplus.o hebeimg.o
O_OBJS += at24.o at24hebe.o config.o hc46.o pcibm2r.o
O_OBJS += pio.o knossosr.o heber.o opcitmsr.o knos2r.o knos3r.o
O_OBJS += smartr.o udmi.o util.o
endif

