ak-lab-4/Makefile
hasslesstech 19b922d4e4
separate modules into hello1 and hello2
hello1 handles all required operations while hello2 triggers them at
load and unload
2024-12-01 19:00:32 +02:00

15 lines
254 B
Makefile

ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := hello1.o hello2.o
ccflags-y := -I$(obj)/inc
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build
default:
$(MAKE) -C $(KDIR) M=$$PWD
clean:
$(MAKE) -C $(KDIR) M=$$PWD clean
endif