diff --git a/Makefile b/Makefile index 75dc1a1..5e908f8 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this software. If not, see . # -obj-m := tuxedo_keyboard.o \ - ./src/clevo_wmi.o \ - ./src/clevo_acpi.o \ - ./src/tuxedo_io/tuxedo_io.o \ - ./src/uniwill_wmi.o - -tuxedo_keyboard-y := ./src/tuxedo_keyboard.o ./src/clevo_leds.o +obj-m := src/ PWD := $(shell pwd) KDIR := /lib/modules/$(shell uname -r)/build diff --git a/src/Kbuild b/src/Kbuild new file mode 100644 index 0000000..d8e05ef --- /dev/null +++ b/src/Kbuild @@ -0,0 +1,8 @@ +obj-m := tuxedo_keyboard.o \ + clevo_wmi.o \ + clevo_acpi.o \ + tuxedo_io/tuxedo_io.o \ + uniwill_wmi.o + +clevo_wmi-y := clevo_wmi.o clevo_leds.o +clevo_acpi-y := clevo_acpi.o clevo_leds.o