summaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl-old/src/wlcompat/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-06-14 11:00:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-06-14 11:00:30 +0000
commit96465c018c224cfd5d82f91215c5c2fbd0b746d3 (patch)
treecb96e071aad517955a9451f62f215a53f7d98a70 /package/broadcom-wl-old/src/wlcompat/Makefile
parent878b1f5b6aaaabd89c7ab389aece703486ee95aa (diff)
rename broadcom-wl to broadcom-wl-old
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21794 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl-old/src/wlcompat/Makefile')
-rw-r--r--package/broadcom-wl-old/src/wlcompat/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/broadcom-wl-old/src/wlcompat/Makefile b/package/broadcom-wl-old/src/wlcompat/Makefile
new file mode 100644
index 000000000..1d18f4566
--- /dev/null
+++ b/package/broadcom-wl-old/src/wlcompat/Makefile
@@ -0,0 +1,27 @@
+#
+# Makefile for wlcompat
+#
+# Copyright (C) 2005-2007 Felix Fietkau <nbd@openwrt.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version
+# 2 of the License, or (at your option) any later version.
+#
+
+EXTRA_CFLAGS += -DBCMDRIVER=1 -DBCMDMA64=1 -I../include
+ifneq ($(DEBUG),)
+ EXTRA_CFLAGS += -DDEBUG=1
+ _D=-debug
+endif
+ifneq ($(WL_WEXT),)
+ EXTRA_CFLAGS += -DWL_WEXT=1
+endif
+
+obj-m := wlcompat$(_D).o
+modules: wlcompat$(_D).o
+
+wlcompat$(_D).o: wlcompat.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<
+
+-include $(TOPDIR)/Rules.make