aboutsummaryrefslogtreecommitdiff
path: root/projects/bootloader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/bootloader/Makefile')
-rw-r--r--projects/bootloader/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/bootloader/Makefile b/projects/bootloader/Makefile
index 7cef633..4eef758 100644
--- a/projects/bootloader/Makefile
+++ b/projects/bootloader/Makefile
@@ -1,8 +1,10 @@
PROG = bootloader
+OBJS = crc32.o dfu.o
+
all: $(PROG:=.elf)
-%.elf: %.o $(BOARD_OBJS) $(LIBS)
+%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $^ -o $@ -T$(BOOTLOADER_LDSCRIPT) -g -Wl,-Map=$*.map
$(OBJCOPY) -O ihex $*.elf $*.hex
$(OBJCOPY) -O binary $*.elf $*.bin