aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorRaySlash <stevemathewjoy@gmail.com>2023-10-02 13:08:52 +1000
committerRaySlash <stevemathewjoy@gmail.com>2023-10-02 22:14:57 +1000
commit75006183d0a379a2b0fa844fc32b3e27d229f368 (patch)
treee69dcd71c1071fb973ea61c5f41f22d48c7b5d9b /src/Makefile
parentb2872a893afd0f9cd0bfd4644348f3b8645edbed (diff)
downloadhid-tmff2-75006183d0a379a2b0fa844fc32b3e27d229f368.tar.gz
hid-tmff2-75006183d0a379a2b0fa844fc32b3e27d229f368.zip
src: initial refactoring
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..5e2ab40
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,16 @@
+KDIR ?= /lib/modules/$(shell uname -r)/build
+
+all: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) modules
+
+install: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) modules_install
+ depmod -A
+
+clean: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) clean
+
+
+.PHONY: hid-tminit
+hid-tminit:
+ $(MAKE) -C hid-tminit KDIR="$(KDIR)" $(MAKECMDGOALS)