ginput/drivers/g-wolves/htx/Makefile

11 lines
279 B
Makefile

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/
gcc $(CFLAGS) -o $@ $^