Stuff
public text v1 · immutableifneq ($(KERNELRELEASE),)
obj-m += module.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CFLAGS += -Wall
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
endif
module-objs := file1.o
clean:
$(RM) .*.cmd *.o *.ko -r .tmp*