lw35-upgrade/ioc/kernel-driver/Makefile

15 lines
323 B
Makefile
Raw Normal View History

2018-08-09 11:27:55 +02:00
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