From 7e0631622917b64a72f4a7d0fb6c2c4e962d8b6b Mon Sep 17 00:00:00 2001 From: Clyne Date: Sat, 23 Nov 2024 10:06:58 -0500 Subject: Initial source upload --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c850aaa --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +KERNELDIR := /usr/src/linux-headers-6.1.21-v8+ +MODULE_NAME=ads1278 + +SRC := ads1278_core.c + +ifneq ($(KERNELRELEASE),) + $(MODULE_NAME)-objs = $(SRC:.c=.o) + obj-m := $(MODULE_NAME).o +else + PWD := $(shell pwd) + +default: +ifeq ($(strip $(KERNELDIR)),) + $(error "KERNELDIR is undefined!") +else + $(MAKE) -C $(KERNELDIR) scripts + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules +endif + +clean: + rm -rf *~ *.ko *.o *.mod.c modules.order Module.symvers .${MODULE_NAME}* .tmp_versions + +endif -- cgit v1.2.3