3 # Makefile for wlcompat
5 # Copyright (C) 2005-2007 Felix Fietkau <nbd@openwrt.org>
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.
13 EXTRA_CFLAGS += -DBCMDRIVER=1 -DBCMDMA64=1 -I../include
15 EXTRA_CFLAGS += -DDEBUG=1
19 EXTRA_CFLAGS += -DWL_WEXT=1
22 obj-m := wlcompat$(_D).o
23 modules: wlcompat$(_D).o
25 wlcompat$(_D).o: wlcompat.c
26 $(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<
28 -include $(TOPDIR)/Rules.make