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