Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #DEBUG = y
- ifeq ($(DEBUG),y)
- DEBFLAGS = -O -g # "-O" is needed to expand inlines
- else
- DEBFLAGS = -O2
- endif
- EXTRA_CFLAGS += $(DEBFLAGS)
- ifneq ($(KERNELRELEASE),)
- obj-m := hello2.o
- else
- KERNELDIR ?= /lib/modules/$(shell uname -r)/build
- PWD := $(shell pwd)
- modules:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
- endif
- modules_install:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
- clean:
- rm -rf *.o *~ core Module.* modules.* .depend .*.cmd *.ko *.mod.c .tmp_versions.PHONY: modules modules_install clean
Add Comment
Please, Sign In to add comment