Ver código fonte

update makefile

SBird1337 7 anos atrás
pai
commit
1f0afe36bd
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      makefile

+ 3
- 1
makefile Ver arquivo

@@ -23,7 +23,7 @@ CHARMAP := charmap.txt
23 23
 
24 24
 DEFINES   := -DBPRE -DSOFTWARE_VERSION=0
25 25
 ASFLAGS   := -mthumb
26
-CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fno-inline -fdiagnostics-show-option -fdiagnostics-color=always -mlong-calls -march=armv4t -Og -std=c11 -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color $(DEFINES)
26
+CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fno-inline -fdiagnostics-show-option -fdiagnostics-color -mlong-calls -march=armv4t -Og -std=c11 -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color $(DEFINES)
27 27
 GRITFLAGS := -ftc -fa
28 28
 LDFLAGS   := -z muldefs
29 29
 BLDPATH   := object
@@ -91,6 +91,7 @@ all: rom
91 91
 
92 92
 .PHONY: rom
93 93
 rom: main.asm $(MAIN_OBJ)
94
+	@echo -e "\e[1;32mCreating ROM\e[0m"
94 95
 	$(ARS) $<
95 96
 	$(NM) $(BLDPATH)/linked.o -n -g --defined-only | \
96 97
 		sed -e '{s/^/0x/g};{/.*\sA\s.*/d};{s/\sT\s/ /g}' > $(OUTPATH)/__symbols.sym
@@ -98,6 +99,7 @@ rom: main.asm $(MAIN_OBJ)
98 99
 	
99 100
 $(MAIN_OBJ): $(ALL_OBJ) $(ICONS_AR) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR) $(CRY_AR) $()#$(B_ENGINE)
100 101
 	$(MAKE) -f assets.makefile
102
+	@echo -e "\e[1;32mLinking ELF binary $@\e[0m"
101 103
 	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group $^ --end-group
102 104
 
103 105
 .PHONY: $(B_ENGINE)