driver: g-wolves full refactor
This commit is contained in:
@@ -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 $^ $@
|
||||
|
Reference in New Issue
Block a user