Skip to content

Commit

Permalink
Fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
remimimimimi committed Jul 27, 2023
1 parent b892613 commit a29880b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ $(OUTPATH)/%.o: $(SRCPATH)/%.c
$(CC) -c $< -o $@ $(CFLAGS)

$(OUTBIN): $(OBJS)
$(CC) -Os $(CFLAGS) -o $@ $(EXAMPLS)/$(OUTNAME).c $^
$(CC) $(CFLAGS) $(EXAMPLS)/$(OUTNAME).c -o $(OUTPATH)/$(OUTNAME).o
$(CC) $(CFLAGS) -o $@ $(OUTPATH)/$(OUTNAME).o $^

$(OUTHEX): $(OUTBIN)
$(OBJCOPY) -j .text -j .data -O ihex $^ $@
Expand Down

0 comments on commit a29880b

Please sign in to comment.