Helps to add the Makefile

This commit is contained in:
Logan G 2023-12-04 22:24:35 -07:00
parent 6e2be41785
commit 71406e02b0
Signed by: logan
GPG key ID: E328528C921E7A7A

15
day3/Makefile Normal file
View file

@ -0,0 +1,15 @@
# 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