From fcef1d3311cd61f8cb68d1c205e33cc7549865f0 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Tue, 24 Jun 2025 18:15:41 -0400 Subject: bugfix: fixed Makefile not compiling --- Makefile | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 352fb13..c78b810 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,22 @@ -CCFLAGS=-O2 -Wall -c -DEBUGFLAGS=-g -Werror -CC=gcc -LDLIBS=-lusb -BACKEND="streamdeck.c" -UTIL="functions.c util.c devdetails.c" -OBJ="streamdeck.o functions.o util.o devdetails.o" -.PHONY="all" +CCFLAGS= -O2 -Wall -c +DEBUGFLAGS= -g -Werror +CC= gcc +LDLIBS= -lhidapi-libusb -lusb-1.0 +BACKEND= streamdeck.c +INC=-I/usr/include/libusb-1.0/ +UTIL= functions.c util.c devdetails.c +OBJ= streamdeck.o functions.o util.o +OUTPUT= streamdeck test +.PHONY= "all" all: driver -driver: $(OBJ) - $(CC) -o streamdeck $(OBJ) - -test: driver - $(CC) -o test test.c $(OBJ) +test: $(OBJ) + $(CC) -o test test.c $(OBJ) $(LDLIBS) clean: - rm $(OBJ) + rm $(OBJ) $(OUTPUT) %.o: %.c - $(CC) $(CCFLAGS) $< + $(CC) $(CCFLAGS) $< $(INC) -- cgit v1.2.3