|
@@ -23,6 +23,7 @@ SOURCEDIR := src
|
23
|
23
|
STRINGDIR := string
|
24
|
24
|
|
25
|
25
|
MAIN_OBJ := $(BLDPATH)/linked.o
|
|
26
|
+B_ENGINE := battle_engine/build/linked.o
|
26
|
27
|
SPRITES := $(BLDPATH)/pkmn_sprites.o
|
27
|
28
|
ICONS_AR := $(BLDPATH)/pkmn_icons.a
|
28
|
29
|
DYN_OVER := built/dynamic_overworld.o
|
|
@@ -78,11 +79,15 @@ rom: main.asm $(MAIN_OBJ)
|
78
|
79
|
sed -e '{s/^/0x/g};{/.*\sA\s.*/d};{s/\sT\s/ /g}' > $(OUTPATH)/__symbols.sym
|
79
|
80
|
@echo "*** SUCCESSFULLY BUILT PROJECT ***"
|
80
|
81
|
|
81
|
|
-$(MAIN_OBJ): $(ALL_OBJ) $(ICONS_AR) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR) $(CRY_AR) $(STRING_OBJ) $(DYN_OVER)
|
|
82
|
+$(MAIN_OBJ): $(ALL_OBJ) $(ICONS_AR) $(SPRITES) $(MUSIC_AR) $(SMPL_AR) $(VOICE_AR) $(LIST_AR) $(CRY_AR) $(STRING_OBJ) $(B_ENGINE)#$(DYN_OVER)
|
82
|
83
|
$(MAKE) -f assets.makefile
|
83
|
84
|
$(LD) $(LDFLAGS) -T linker.ld -T bpre.sym --whole-archive -r -o $@ --start-group $^ --end-group
|
84
|
85
|
$(LD) $(LDFLAGS) -T linker.ld -T bpre.sym -o object/debug.o object/linked.o
|
85
|
86
|
|
|
87
|
+.PHONY: $(B_ENGINE)
|
|
88
|
+$(B_ENGINE):
|
|
89
|
+ $(MAKE) -C $(dir $@)/.. build/linked.o
|
|
90
|
+
|
86
|
91
|
.PHONY: clean
|
87
|
92
|
clean:
|
88
|
93
|
rm -f $(OUTPATH)/__symbols.sym $(OUTPATH)/pkmn_sots.gba
|