aboutsummaryrefslogtreecommitdiff
path: root/upgrade/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade/Makefile')
-rw-r--r--upgrade/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/upgrade/Makefile b/upgrade/Makefile
new file mode 100644
index 0000000..65d88e5
--- /dev/null
+++ b/upgrade/Makefile
@@ -0,0 +1,22 @@
+
+CC = $(CROSS_COMPILE)gcc
+
+CFLAGS = -Wall -Wextra -std=gnu99 -O0 -g -MD
+LDFLAGS = -lusb
+
+OBJ = bindata.o \
+ dfu.o \
+ stm32mem.o \
+ main.o
+
+all: bmp_upgrade
+
+bmp_upgrade: $(OBJ)
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+.PHONY: clean
+clean:
+ -rm -rf bmp_upgrade *.d *.o
+
+-include *.d
+