Root/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
12EXTRA_CFLAGS += -DBCMDRIVER=1 -DBCMDMA64=1 -I../include
13ifneq ($(DEBUG),)
14  EXTRA_CFLAGS += -DDEBUG=1
15  _D=-debug
16endif
17ifneq ($(WL_WEXT),)
18  EXTRA_CFLAGS += -DWL_WEXT=1
19endif
20
21obj-m := wlcompat$(_D).o
22modules: wlcompat$(_D).o
23
24wlcompat$(_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
28

Archive Download this file



interactive