2019-11-01 12:50:05 +01:00
|
|
|
obj-m := lw35ioc.o
|
|
|
|
KDIR := ~/projects/linux/opi-current
|
2018-08-09 11:27:55 +02:00
|
|
|
PWD := $(shell pwd)
|
2019-11-01 12:50:05 +01:00
|
|
|
default: lw35ioc.ko
|
|
|
|
lw35ioc.ko: lw35ioc.c
|
|
|
|
$(MAKE) -C $(KDIR) M=$(PWD)
|
2018-08-09 11:27:55 +02:00
|
|
|
|
2019-11-01 12:50:05 +01:00
|
|
|
deploy: lw35ioc.ko
|
|
|
|
scp $< markus@opi:/home/markus/projects/lw35/deploy/
|
2018-08-09 11:27:55 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ./*.o ./*.ko ./*.mod.c modules.order Module.symvers
|
|
|
|
|
|
|
|
.phony: deploy clean
|