temp-monitor/Module/Makefile
github-classroom[bot] 5cb3fd2d1e
Initial commit
2024-11-17 22:15:14 +00:00

18 lines
351 B
Makefile

KERNELDIR=/lib/modules/`uname -r`/build
# This the the Makefile for the device driver (not your demonstration program)
#Change the base name here to your module file name - no extension
BASENAME=helloworld
MODULES = $(BASENAME).ko
obj-m += $(BASENAME).o
all:
make -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean