CC = gcc CFLAGS = -Wall PROG = helloworld HPTEST = hptest KMOD = variable_monitor obj-m := $(KMOD).o $(KMOD)-objs := monitor_kernel.o all: $(PROG) $(HPTEST) module $(PROG): helloworld.c $(CC) $(CFLAGS) -o $(PROG) helloworld.c monitor_user.c $(HPTEST): hptest.c $(CC) $(CFLAGS) -o $(HPTEST) hptest.c monitor_user.c module: make -C linux-5.17.15 M=$(PWD) modules clean: rm -f $(PROG) rm -f $(HPTEST) make -C linux-5.17.15 M=$(PWD) clean