--- /dev/null
+#! /bin/sh
+
+echo "Building KLGD-FF..."
+cd ./plugin
+make || exit 1
+
+echo "Building KLGD Testing module"
+cd ../testmod
+make
KBUILD_CFLAGS += -g3
ifneq ($(KERNELRELEASE),)
- klgdffm-y := klgd_ff_plugin.o
- klgdffm-y += klgdff.o
- obj-m += klgd_ff_plugin.o klgdffm.o
+ obj-m += klgd_ff_plugin.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
#include <linux/input.h>
-#include "../KLGD/klgd.h"
+#include "../../KLGD/klgd.h"
#define FFPL_EFBIT(x) BIT(x - FF_EFFECT_MIN)
--- /dev/null
+# You will want to fix this line
+KBUILD_EXTRA_SYMBOLS := /home/madcat/Devel/KLGD/Module.symvers
+KBUILD_EXTRA_SYMBOLS += /home/madcat/Devel/KLGD_FFModule/plugin/Module.symvers
+KBUILD_CFLAGS += -g3
+
+ifneq ($(KERNELRELEASE),)
+ obj-m += klgdff.o
+
+else
+ KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+ PWD := $(shell pwd)
+
+default:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD)
+
+clean:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+
+endif
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
-#include "klgd_ff_plugin.h"
+#include "../plugin/klgd_ff_plugin.h"
#define EFFECT_COUNT 8