summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-07-05 13:22:43 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-07-05 13:22:43 +0100
commit7b7086a2ad996daa8cabe44af5a2a7f88d893f60 (patch)
treef710b5fa83ca7adf7556cdfdd1f7366a65ae337f /Makefile
parent03e566b26dca57c73b08966cf56e73348b481efe (diff)
downloadtemper-7b7086a2ad996daa8cabe44af5a2a7f88d893f60.tar.bz2
Temper reader
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..db477b9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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 $<