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

all: driver

driver: $(OBJ) 
	$(CC) -o streamdeck $(OBJ)

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

clean:
	rm $(OBJ)

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