remove the wl.o build from the kernel patch and move the driver along with wl, nas...
[openwrt/svn-archive/archive.git] / openwrt / package / broadcom-wl / src / kmod / Makefile
1 #
2 # Makefile for the Broadcom wl driver
3 #
4 # Copyright 2004, Broadcom Corporation
5 # All Rights Reserved.
6 #
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 #
12 # $Id: Makefile,v 1.2 2005/03/29 03:32:18 mbm Exp $
13
14 EXTRA_CFLAGS += -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER
15
16 O_TARGET := wl_link.o
17
18 obj-y := wl_mod.o
19 obj-y += bcmutils.o hnddma.o linux_osl.o
20
21 obj-m := $(O_TARGET)
22
23 wl_mod.o: wl_apsta.o
24 sed -e 's,eth%d,wl%d\x00,g' < $< > $@
25
26 wl.o: wl_link.o
27 $(OBJDUMP) -d $< | perl patchtable.pl > patchtable.bin
28 cat wl_link.o patchtable.bin > $@
29
30 modules: wl.o
31
32 include $(TOPDIR)/Rules.make