diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2014-12-25 05:29:17 +0100 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2014-12-25 05:29:17 +0100 |
commit | 28120935bc38e3861a885d745ec6ebe3f603611e (patch) | |
tree | 03585684e15363089281210c0b405282bbf40a79 /Makefile.external |
Initial commit (10.2.6.1.p4-20141224)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Diffstat (limited to 'Makefile.external')
-rw-r--r-- | Makefile.external | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile.external b/Makefile.external new file mode 100644 index 0000000..cb06392 --- /dev/null +++ b/Makefile.external @@ -0,0 +1,30 @@ +obj-m += mwlwifi.o + +mwlwifi-objs += mwl_main.o +mwlwifi-objs += mwl_mac80211.o +mwlwifi-objs += mwl_fwdl.o +mwlwifi-objs += mwl_fwcmd.o +mwlwifi-objs += mwl_tx.o +mwlwifi-objs += mwl_rx.o +mwlwifi-objs += mwl_debug.o + +AS = $(CROSS_COMPILE)as +LD = $(CROSS_COMPILE)ld +CC = $(CROSS_COMPILE)gcc + +ifeq (1, $(MWLDBG)) +EXTRA_CFLAGS+= -DMWL_DEBUG +endif + +EXTRA_CFLAGS+= -I${KDIR} +EXTRA_CFLAGS+= -O2 -funroll-loops + +EXTRA_CFLAGS+= -I${PWD} + +all: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + +clean: + rm -f *.o *.a *.s *.ko *.ko.cmd *.o.cmd *.mod.* .mwlwifi.* + rm -rf modules.order Module.symvers .tmp_versions + find . -name ".*.o.cmd" -exec rm -f {} \; |