summaryrefslogtreecommitdiff
path: root/Makefile
blob: c78b8108531913b1bc0658e542b65add5543adc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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

test: $(OBJ) 
	$(CC) -o test test.c $(OBJ) $(LDLIBS)

clean:
	rm $(OBJ) $(OUTPUT)

%.o: %.c
	$(CC) $(CCFLAGS) $< $(INC)