2 # Broadcom BCM57XX Gigabit Ethernet driver make file.
4 # $Id: Makefile,v 1.3 2008/05/02 22:49:54 Exp $
7 B57SRCDIR
:= ..
/..
/..
/..
/..
/bcm57xx
8 SHAREDSRCDIR
:= ..
/..
/..
/..
/..
/shared
10 obj-
$(CONFIG_BCM57XX
) := bcm57xx.o
12 bcm57xx-objs
:= $(B57SRCDIR
)/linux
/b57um.o
$(B57SRCDIR
)/linux
/b57proc.o \
13 $(B57SRCDIR
)/linux
/b57diag.o \
14 $(B57SRCDIR
)/sys
/tigon3.o
$(B57SRCDIR
)/sys
/autoneg.o \
15 $(B57SRCDIR
)/sys
/5701rls.o
$(B57SRCDIR
)/sys
/tcp_seg.o \
16 $(SHAREDSRCDIR
)/hndgige.o
18 # If source directory src/bcm57xx exists, build objects from there
19 ifneq ($(wildcard $(src
)/$(B57SRCDIR
)/sys
),)
21 EXTRA_CFLAGS
+= -DDBG
=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT
=256 -DNICE_SUPPORT
-DBCM_SMALL_DRV
22 EXTRA_CFLAGS
+= -DPCIX_TARGET_WORKAROUND
=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX
=1
23 EXTRA_CFLAGS
+= -I
$(src
)/$(B57SRCDIR
)/linux
-I
$(src
)/$(B57SRCDIR
)/sys \
24 -I
$(src
)/$(B57SRCDIR
)/include
26 EXTRA_CFLAGS
+= -DLINUX_HYBRID_POSTPROCESSING_REMOVAL
27 # Otherwise, use object module(s) in this directory
30 bcm57xx-objs
:= $(B57SRCDIR
)/linux
/bcm57xx.o
34 ifneq ($(KERNELRELEASE
),)
35 # kbuild part of makefile
38 KERNELDIR
:= ..
/..
/..
/..
/..
/linux
/linux-2.6
40 $(MAKE
) -C
$(KERNELDIR
) M
=`pwd`
43 $(MAKE
) -C
$(KERNELDIR
) M
=`pwd` clean
46 clean-files
+= $(B57SRCDIR
)/sys
/*.o
$(B57SRCDIR
)/sys
/.
*.o.cmd \
47 $(B57SRCDIR
)/linux
/*.o
$(B57SRCDIR
)/linux
/.
*.o.cmd \
48 $(SHAREDSRCDIR
)/hndgige.o
$(SHAREDSRCDIR
)/.hndgige.o.cmd