parent
a758542b6e
commit
4b94d2adb8
@ -1,7 +1,14 @@ |
||||
SUBDIRS := $(wildcard */.)
|
||||
CC=gcc
|
||||
CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
|
||||
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
|
||||
|
||||
all: $(SUBDIRS) |
||||
$(SUBDIRS): |
||||
$(MAKE) -C $@
|
||||
ASSETS=$(shell find devices/ -name '*.png')
|
||||
FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/gwolves-htx.png
|
||||
BUILD_DIR=../../build/
|
||||
|
||||
.PHONY: all $(SUBDIRS) |
||||
all: $(BUILD_DIR)/drivers/g-wolves.so |
||||
|
||||
$(BUILD_DIR)/drivers/g-wolves.so: g-wolves.c | $(BUILD_DIR)/drivers/ |
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
$(BUILD_DIR)/drivers/assets/%.png: devices/%.png | $(BUILD_DIR)/drivers/assets |
||||
cp $^ $@
|
||||
|
After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@ -0,0 +1,11 @@ |
||||
#ifndef HTS_PLUS_H |
||||
#define HTS_PLUS_H |
||||
|
||||
#define HTS_PLUS_4K_PRODUCT_ID_WIRED 0x5408 |
||||
#define HTS_PLUS_4K_PRODUCT_ID_WIRELESS 0x5407 |
||||
#define HTS_PLUS_4K_PRODUCT_NAME "HTS+ 4K" |
||||
|
||||
#define HTS_DPI_MAX_VALUE 26000 |
||||
#define HTS_DPI_MAX_LEVEL_COUNT 5 |
||||
|
||||
#endif |
@ -0,0 +1,11 @@ |
||||
#ifndef HTX_H |
||||
#define HTX_H |
||||
|
||||
#define HTX_4K_PRODUCT_ID_WIRED 0x5708 |
||||
#define HTX_4K_PRODUCT_ID_WIRELESS 0x5707 |
||||
#define HTX_4K_PRODUCT_NAME "HTX 4K" |
||||
|
||||
#define HTX_DPI_MAX_VALUE 26000 |
||||
#define HTX_DPI_MAX_LEVEL_COUNT 5 |
||||
|
||||
#endif |
@ -1,12 +0,0 @@ |
||||
CC=gcc
|
||||
CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
|
||||
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
|
||||
|
||||
BUILD_DIR=../../../build/
|
||||
|
||||
all: $(BUILD_DIR)/drivers/gwolves-htx.so |
||||
|
||||
$(BUILD_DIR)/drivers/gwolves-htx.so: htx.c | $(BUILD_DIR)/drivers/ |
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
$(BUILD_DIR)/drivers/assets/gwolves-htx.png: htx_0.png | $(BUILD_DIR)/drivers/assets |
||||
cp $^ $@
|
Loading…
Reference in new issue