Browse Source

Merge origin/master

Conflicts:
	gfx_build/.gitignore
	sots-private
	sprites.makefile
SBird1337 7 years ago
parent
commit
ecc60d93cd
2 changed files with 4 additions and 5 deletions
  1. 1
    1
      gfx_build/.gitignore
  2. 3
    4
      sprites.makefile

+ 1
- 1
gfx_build/.gitignore View File

@@ -1,3 +1,3 @@
1 1
 *.o
2 2
 *.s
3
-*.ld
3
+tmp.ld

+ 3
- 4
sprites.makefile View File

@@ -3,8 +3,7 @@ AR = arm-none-eabi-ar
3 3
 LD = arm-none-eabi-ld
4 4
 
5 5
 GFX_BUILD_DIR = gfx_build
6
-TMP_FILE = $(GFX_BUILD_DIR)/tmp.o
7
-TMP_FILE2 = $(GFX_BUILD_DIR)/tmp2.o
6
+TMP_LD = $(GFX_BUILD_DIR)/tmp.ld
8 7
 
9 8
 LDFLAGS   := -z muldefs
10 9
 
@@ -46,8 +45,8 @@ clean:
46 45
 	rm -f $(GFX_BUILD_DIR)/overworlds/*
47 46
 
48 47
 $(SPRITES_BINARY): $(NORMAL_PAL_OBJ) $(SHINY_PAL_OBJ) $(SPRITE_FRONT_OBJ) $(SPRITE_BACK_OBJ) $(NORMAL_CASTFORM_PAL_OBJ) $(SHINY_CASTFORM_PAL_OBJ) $(CASTFORM_FRONT_OBJ) $(CASTFORM_BACK_OBJ) $(OW_OBJ) $(TS_OBJ)
49
-	@echo "INPUT($^)" > $(GFX_BUILD_DIR)/sprites.ld
50
-	$(LD) -r -o $(SPRITES_BINARY) -T $(GFX_BUILD_DIR)/sprites.ld
48
+	echo "INPUT($^)" > $(TMP_LD)
49
+	$(LD) -r -o $@ -T $(TMP_LD)
51 50
 
52 51
 # OW Targets
53 52
 $(GFX_BUILD_DIR)/overworlds/%.o: $(GFX_BUILD_DIR)/overworlds/%.s