summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-15 01:07:15 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-12-15 01:07:15 +0100
commit2b32f1023b98583a7e5d02156b8af38c043b781d (patch)
tree5bd796eb9143d58bdb300ea16eade1abf2b236d4 /Makefile
parentca1b6c18fe8499e04f71f9d035be39b29118a6bd (diff)
downloadt650-dfu-2b32f1023b98583a7e5d02156b8af38c043b781d.tar.gz
Add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..35f784d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+
+# GCC before 5 has a bug with -Wmissing-field-initializers
+#CC ?= clang
+WFLAGS ?= -Wall -Wextra
+CFLAGS ?= -I../lib -ggdb3 -fsanitize=undefined -fsanitize=address
+LDFLAGS ?= -L../lib -lltunify
+
+fw-update: fw-update.c ../lib/libltunify.a
+ $(CC) $(WFLAGS) $(CFLAGS) $< -o $@ $(LDFLAGS)