Helps to add the Makefile
This commit is contained in:
parent
6e2be41785
commit
71406e02b0
1 changed files with 15 additions and 0 deletions
15
day3/Makefile
Normal file
15
day3/Makefile
Normal 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
|
Loading…
Reference in a new issue