temp-monitor/Module/Makefile
2024-12-05 22:36:41 -08:00

16 lines
350 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=tempMonitor
MODULES = $(BASENAME).ko
obj-m += $(BASENAME).o
all:
make -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean