13 lines
285 B
Makefile
13 lines
285 B
Makefile
obj-m += mod_hello.o
|
|
|
|
all: module helloctl/helloctl
|
|
|
|
helloctl/helloctl: ./helloctl/helloctl.c
|
|
$(CC) -o $@ $<
|
|
|
|
module:
|
|
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
rm -f helloctl/helloctl *~
|