DemoPublic/Linux/KernelDriver/Misc/Makefile

14 lines
232 B
Makefile

obj-m:= \
demomisc.o
demomisc-objs:= \
demo_misc.o
EXTRA_CFLAGS += \
-I$(PWD)
all:
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean