1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Makefile # SRC := $(shell pwd) obj-m += aim_cdev.o aim_cdev-y := cdev.o CFLAGS_cdev.o := -I$(src)/../../mostcore/files/ 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