aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 66561f1b8b75fc7dfb5901f0e7c080ceab49fee0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS ?= -O3 -march=native -fomit-frame-pointer -pipe

CFLAGS += -std=c99 $(shell pkg-config --cflags libusb-1.0)
LDLIBS = $(shell pkg-config --libs libusb-1.0)

all: test

hasplib.c: hasplib.h
hasplib-simple.c: hasplib.c hasplib.h

test: hasplib.c hasplib-simple.c test.c

clean:
	rm -v test

.PHONY: all clean