ginput/drivers/g-wolves/Makefile

14 lines
536 B
Makefile
Raw Permalink Normal View History

2023-09-26 22:13:10 +02:00
CC=gcc
CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
2023-09-19 15:06:41 +02:00
2023-09-27 17:16:44 +02:00
FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/gwolves-htx.png $(BUILD_DIR)/drivers/assets/gwolves-hts_plus.png $(BUILD_DIR)/drivers/assets/gwolves-hsk_pro.png
2023-09-26 22:13:10 +02:00
BUILD_DIR=../../build/
2023-09-19 15:06:41 +02:00
2023-09-27 20:23:38 +02:00
all: $(BUILD_DIR)/drivers/g-wolves.so $(FINAL_ASSETS)
2023-09-26 22:13:10 +02:00
$(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 $^ $@