Revision 2b0ba4bb scout_gumstix/encoder/Makefile

View differences:

scout_gumstix/encoder/Makefile
1 1
obj-m += encoder.o
2
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
2 3

  
3 4
all: encoder.ko
4 5

  
5 6
encoder.ko: encoder.c
6
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
7
	make -C $(KERNEL_DIR) M=$(PWD) modules
7 8

  
8 9
clean:
9
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
10
	make -C $(KERNEL_DIR) M=$(PWD) clean

Also available in: Unified diff