Neelansh Mittal | e6c1e86 | 2014-07-04 20:04:43 +0530 | [diff] [blame] | 1 | default: all |
| 2 | |
| 3 | KBUILD_OPTIONS := WLAN_ROOT=$(PWD) |
| 4 | KBUILD_OPTIONS += MODNAME=wlan |
| 5 | |
| 6 | all:: |
| 7 | $(MAKE) -C $(KERNEL_SOURCE) $(KBUILD_OPTIONS) $(EXTRA_CFLAGS) ARCH=$(ARCH) \ |
| 8 | SUBDIRS=$(CURDIR) CC=${CC} modules |
| 9 | |
Neelansh Mittal | adb9a6b | 2014-07-18 16:07:48 +0530 | [diff] [blame] | 10 | modules_install: |
| 11 | $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install |
| 12 | |
Neelansh Mittal | e6c1e86 | 2014-07-04 20:04:43 +0530 | [diff] [blame] | 13 | clean:: |
| 14 | rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers |
| 15 | rm -rf .tmp_versions |
| 16 | |
| 17 | |