lw35-upgrade/ioc/kernel-driver/Makefile

15 lines
310 B
Makefile

obj-m := lw35ioc.o
KDIR := ~/projects/linux/opi-current
PWD := $(shell pwd)
default: lw35ioc.ko
lw35ioc.ko: lw35ioc.c
$(MAKE) -C $(KDIR) M=$(PWD)
deploy: lw35ioc.ko
scp $< markus@opi:/home/markus/projects/lw35/deploy/
clean:
rm -f ./*.o ./*.ko ./*.mod.c modules.order Module.symvers
.phony: deploy clean