Skip to content

Commit

Permalink
changed formatting of Makefile output
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mironov committed Sep 29, 2023
1 parent a7b683b commit 3ed3948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/debug/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ vpath %.c $(sort $(dir $(C_SOURCES)))
OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(ASM_SOURCES:.s=.o)))
vpath %.s $(sort $(dir $(ASM_SOURCES)))


$(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
@$(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@
@printf "[\033[32m+\033[0m] Compiling \033[31m%-120s\033[0m[\033[32mOK\033[0m]\n" $<
@printf "%-$(shell expr $(shell tput cols) - 0)b%b\n" "[\033[32m+\033[0m] Compiling \033[31m$<\033[0m" "[\033[32mOK\033[0m]"

$(BUILD_DIR)/%.o: %.s Makefile | $(BUILD_DIR)
@$(AS) -c $(CFLAGS) $< -o $@
Expand Down

0 comments on commit 3ed3948

Please sign in to comment.