GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / net / et / Makefile
blobf9fe0415f8b086d66f80bdb42cc1d2f76814766b
2 # Makefile for the Broadcom et driver
4 # Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 # $Id: Makefile,v 1.5 2010-12-07 04:47:36 $
21 ETSRCDIR := ../../../../../../src-rt-6.x.4708/et
23 et-objs := $(ETSRCDIR)/sys/et_linux.o $(ETSRCDIR)/sys/etc.o
25 ifeq ($(CONFIG_BUZZZ_FUNC),y)
26 subdir-ccflags-y += -O0 -fno-inline -finstrument-functions
27 endif # CONFIG_BUZZZ_FUNC
29 ifeq ($(CONFIG_ET_47XX),y)
30 et-objs += $(ETSRCDIR)/sys/etc47xx.o $(ETSRCDIR)/sys/etc_adm.o
31 et-objs += $(ETSRCDIR)/sys/etcgmac.o
32 EXTRA_CFLAGS += -DCFG_GMAC -DBCM47XX_CHOPS -DETROBO -DETADM -DBCMDMA64 -DBCMDMA32
33 endif
35 obj-$(CONFIG_ET) := et.o
37 EXTRA_CFLAGS += -DDMA -Werror
38 ifeq ($(CONFIG_ET_ALL_PASSIVE_ON),y)
39 EXTRA_CFLAGS += -DET_ALL_PASSIVE_ON -DET_ALL_PASSIVE
40 else
41 ifeq ($(CONFIG_ET_ALL_PASSIVE_RUNTIME),y)
42 EXTRA_CFLAGS += -DET_ALL_PASSIVE
43 endif
44 endif # /* CONFIG_ET_ALL_PASSIVE_ON */
46 # Search for sources under src/et/sys or objects under src/et/linux
47 ifneq ($(wildcard $(src)/$(ETSRCDIR)/sys),)
48 EXTRA_CFLAGS += -I$(src)/$(ETSRCDIR)/sys -I$(src)/$(ETSRCDIR)/include
49 else
50 et-objs := $(ETSRCDIR)/linux/et.o
51 endif
53 ifneq ($(KERNELRELEASE),)
54 # kbuild part of makefile
55 else
56 # Normal makefile
57 KERNELDIR := $(BASEDIR)/components/opensource/linux/linux-2.6.36
58 all:
59 $(MAKE) -C $(KERNELDIR) M=`pwd`
61 clean:
62 $(MAKE) -C $(KERNELDIR) M=`pwd` clean
63 endif
65 clean-files += $(ETSRCDIR)/sys/*.o $(ETSRCDIR)/sys/.*.o.cmd