1 2 3 4 5 6 7 8 9 10 11 12 13
# # Makefile for mtty.c file # KERNEL_DIR:=/lib/modules/$(shell uname -r)/build obj-m:=mtty.o modules clean modules_install: $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD) $@ default: modules module: modules