1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Makefile # SRC := $(shell pwd) obj-m := mostcore.o mostcore-y := core.o CFLAGS_core.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules modules_install: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install clean: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean