Skip to content

Commit

Permalink
nano-bootloader: Add binary target
Browse files Browse the repository at this point in the history
  • Loading branch information
c-mauderer committed Nov 29, 2024
1 parent 3e5efbf commit d6beca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nano-bootlader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ APP_PIECES = $(wildcard *.c)
APP_OBJS = $(APP_PIECES:%.c=$(BUILDDIR)/%.o)
APP_DEPS = $(APP_PIECES:%.c=$(BUILDDIR)/%.d)

all: $(BUILDDIR) $(APP).exe
all: $(BUILDDIR) $(APP).exe $(APP).bin

$(BUILDDIR):
mkdir $(BUILDDIR)

$(APP).exe: $(APP_OBJS)
$(CCLINK) $^ -lgrisp -linih -lbsd -lm -o $@

$(APP).bin: $(APP).exe
$(OBJCOPY) -O binary $< $@

clean:
rm -rf $(BUILDDIR)

Expand Down

0 comments on commit d6beca8

Please sign in to comment.