15 lines
323 B
Makefile
15 lines
323 B
Makefile
# obj-m specifie we're a kernel module.
|
|
obj-m += aoc2023d3p1.o
|
|
obj-m += aoc2023d3p2.o
|
|
|
|
# Set the path to the Kernel build utils.
|
|
KBUILD=/lib/modules/$(shell uname -r)/build/
|
|
|
|
default:
|
|
$(MAKE) -C $(KBUILD) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KBUILD) M=$(PWD) clean
|
|
|
|
menuconfig:
|
|
$(MAKE) -C $(KBUILD) M=$(PWD) menuconfig
|