################################################################################
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright © 2004 Atheros Communications, Inc.,  All Rights Reserved.
#
# Makefile for Atheros ar531x ethernet driver
#
# 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).
#
################################################################################

#
# Makefile for the Atheros ar531x ethernet driver
#


obj-$(CONFIG_NET_ATHEROS_ETHER) := ae531x.o


EXTRA_CFLAGS+=$(INCS) ${COPTS} -g
ifeq ($(DEBUG_BUILD),1)
EXTRA_CFLAGS+=-DDEBUG
endif
#EXTRA_CFLAGS+=-DDEBUG

ae531x-objs := ae531xlnx.o ae531xmac.o

ifeq ($(CONFIG_REALTEK_ENET_PHY),y)
  ae531x-objs += rtPhy.o
endif
ifeq ($(CONFIG_KENDIN_ENET_PHY),y)
  ae531x-objs += kendSwitchPhy.o
endif
ifeq ($(CONFIG_MARVELL_ENET_PHY),y)
  ae531x-objs += mvPhy.o
endif


ae531x.o : $(ae531x-objs)
	$(LD) -o ae531x.o -r $(ae531x-objs)



