summaryrefslogtreecommitdiff
path: root/Makefile
blob: db477b96d0326fa3c10f00112b5ece9ed7e5ba67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
all: temper

clean:
	$(RM) temper temper.o

WARN := -Wall -std=c99
OPT := -O0

CFLAGS += $(shell pkg-config --cflags hidapi-libusb) $(WARN) $(OPT)
LIBS += $(shell pkg-config --libs hidapi-libusb)

temper: temper.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<