Skip to content

Commit

Permalink
Merge pull request #2 from remimimimimi/main
Browse files Browse the repository at this point in the history
Fix Makefile
  • Loading branch information
remimimimimi authored Jul 27, 2023
2 parents b892613 + a29880b commit 81a8883
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 81a8883

Please sign in to comment.