Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | ifneq ($(KERNELRELEASE),) |
| 2 | |
Alan Cox | 88c1834 | 2005-05-27 13:40:53 +0100 | [diff] [blame] | 3 | pwc-objs := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o pwc-timon.o pwc-kiara.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | obj-$(CONFIG_USB_PWC) += pwc.o |
| 6 | |
| 7 | else |
| 8 | |
| 9 | KDIR := /lib/modules/$(shell uname -r)/build |
| 10 | PWD := $(shell pwd) |
| 11 | |
| 12 | default: |
| 13 | $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules |
| 14 | |
| 15 | endif |
| 16 | |
| 17 | clean: |
| 18 | rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c |
| 19 | rm -rf .tmp_versions |
| 20 | |