driver: added basic razer driver (viper mini)
This commit is contained in:
13
drivers/razer/Makefile
Normal file
13
drivers/razer/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
CC=gcc
|
||||
CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
|
||||
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
|
||||
|
||||
FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/razer-viper_mini.png
|
||||
BUILD_DIR=../../build/
|
||||
|
||||
all: $(BUILD_DIR)/drivers/razer.so $(FINAL_ASSETS)
|
||||
|
||||
$(BUILD_DIR)/drivers/razer.so: razer.c | $(BUILD_DIR)/drivers/
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
$(BUILD_DIR)/drivers/assets/%.png: %.png | $(BUILD_DIR)/drivers/assets
|
||||
cp $^ $@
|
Reference in New Issue
Block a user