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