15 lines
323 B
Makefile
15 lines
323 B
Makefile
obj-m := lw35-ioc.o
|
|
KDIR := ~/projects/arm-linux/current
|
|
PWD := $(shell pwd)
|
|
default: lw35-ioc.ko
|
|
lw35-ioc.ko: lw35-ioc.c
|
|
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
|
|
|
|
deploy: lw35-ioc.ko
|
|
scp $< markus@opi:/home/markus/lw35-ioc/deploy
|
|
|
|
clean:
|
|
rm -f ./*.o ./*.ko ./*.mod.c modules.order Module.symvers
|
|
|
|
.phony: deploy clean
|