move wlcompat to the broadcom-wl package
[openwrt/openwrt.git] / package / broadcom-wl / src / wlcompat / Makefile
1 # $Id$
2 #
3 # Makefile for wlcompat
4 #
5 # Copyright (C) 2005-2007 Felix Fietkau <nbd@openwrt.org>
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version
10 # 2 of the License, or (at your option) any later version.
11 #
12
13 EXTRA_CFLAGS += -DBCMDRIVER=1 -DBCMDMA64=1 -I../include
14 ifneq ($(DEBUG),)
15 EXTRA_CFLAGS += -DDEBUG=1
16 _D=-debug
17 endif
18
19 obj-m := wlcompat$(_D).o
20 modules: wlcompat$(_D).o
21
22 wlcompat$(_D).o: wlcompat.c
23 $(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<
24
25 -include $(TOPDIR)/Rules.make