Browse Source

update makefile

SBird1337 7 years ago
parent
commit
1f0afe36bd
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      makefile

+ 3
- 1
makefile View File

23
 
23
 
24
 DEFINES   := -DBPRE -DSOFTWARE_VERSION=0
24
 DEFINES   := -DBPRE -DSOFTWARE_VERSION=0
25
 ASFLAGS   := -mthumb
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
 GRITFLAGS := -ftc -fa
27
 GRITFLAGS := -ftc -fa
28
 LDFLAGS   := -z muldefs
28
 LDFLAGS   := -z muldefs
29
 BLDPATH   := object
29
 BLDPATH   := object
91
 
91
 
92
 .PHONY: rom
92
 .PHONY: rom
93
 rom: main.asm $(MAIN_OBJ)
93
 rom: main.asm $(MAIN_OBJ)
94
+	@echo -e "\e[1;32mCreating ROM\e[0m"
94
 	$(ARS) $<
95
 	$(ARS) $<
95
 	$(NM) $(BLDPATH)/linked.o -n -g --defined-only | \
96
 	$(NM) $(BLDPATH)/linked.o -n -g --defined-only | \
96
 		sed -e '{s/^/0x/g};{/.*\sA\s.*/d};{s/\sT\s/ /g}' > $(OUTPATH)/__symbols.sym
97
 		sed -e '{s/^/0x/g};{/.*\sA\s.*/d};{s/\sT\s/ /g}' > $(OUTPATH)/__symbols.sym
98
 	
99
 	
99
 $(MAIN_OBJ): $(ALL_OBJ) $(ICONS_AR) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR) $(CRY_AR) $()#$(B_ENGINE)
100
 $(MAIN_OBJ): $(ALL_OBJ) $(ICONS_AR) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR) $(CRY_AR) $()#$(B_ENGINE)
100
 	$(MAKE) -f assets.makefile
101
 	$(MAKE) -f assets.makefile
102
+	@echo -e "\e[1;32mLinking ELF binary $@\e[0m"
101
 	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group $^ --end-group
103
 	$(LD) $(LDFLAGS) -T $(PAGB_LINK) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group $^ --end-group
102
 
104
 
103
 .PHONY: $(B_ENGINE)
105
 .PHONY: $(B_ENGINE)