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