2016-01-19 11:57:11 +00:00
|
|
|
obj-m += drv.o
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
ccflags-y += "-g"
|
|
|
|
ccflags-y += "-O0"
|
2016-09-04 09:03:15 +00:00
|
|
|
ccflags-y += "-ggdb"
|
2016-01-19 11:57:11 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
# compile the trigger
|
|
|
|
$(CC) trigger.c -O2 -o trigger
|
|
|
|
|
|
|
|
clean:
|
|
|
|
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
|
|
|
rm -fr ./trigger
|