keymash/Makefile

26 lines
426 B
Makefile
Raw Normal View History

KERNELRELEASE ?= $(shell uname -r)
2022-01-19 02:32:13 +01:00
DEBUG ?= n
ifeq ($(DEBUG),y)
EXTRA_CFLAGS += -Og -g -DDEBUG
else
EXTRA_CFLAGS += -O2
endif
EXTRA_CFLAGS += -I$(PWD)/include
obj-m += keymash.o
keymash-sources = src/keymash.c
keymash-objs = $(keymash-sources:.c=.o)
keymash.ko:
make -C "/lib/modules/$(KERNELRELEASE)/build" M="$(PWD)" modules
2022-01-19 02:32:13 +01:00
clean:
make -C "/lib/modules/$(KERNELRELEASE)/build" M="$(PWD)" clean
2022-01-19 02:32:13 +01:00
all: keymash.ko