aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..66561f1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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