#
# Makefile for the Xilinx ethernet driver
#

ifeq ($(CONFIG_PPC32),y)
EXTRA_CFLAGS		+= -I$(TOPDIR)/arch/ppc/platforms/xilinx_ocp
endif

list-multi		:= xilinx_gige.o

# The Linux adapter for the Xilinx driver code.
xilinx_gige-objs	+= adapter.o

# The Xilinx OS independent code.
xilinx_gige-objs	+= xgemac.o xgemac_g.o xgemac_intr.o \
			   xgemac_intr_dma.o \
			   xgemac_intr_fifo.o xgemac_options.o \
			   xgemac_control.o

obj-$(CONFIG_XILINX_GIGE) := xilinx_gige.o

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

include $(TOPDIR)/Rules.make
