-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
OPT = -O3
all: cartridge.bin
phony:
arm9/%.bin: phony
make -C arm9/ $(notdir $@)
arm7/%.bin: phony
make -C arm7/ $(notdir $@)
registers:
make -C registers/
DEFAULT = header.o arm7/arm7.bin.o
2d_engine.elf: $(DEFAULT) arm9/2d_engine.bin.o
triangle.elf: $(DEFAULT) arm9/triangle.bin.o
triangle_rotating.elf: $(DEFAULT) arm9/triangle_rotating.bin.o
texture.elf: $(DEFAULT) arm9/texture.bin.o
cube.elf: $(DEFAULT) arm9/cube.bin.o
icosphere.elf: $(DEFAULT) arm9/icosphere.bin.o
majora.elf: $(DEFAULT) arm9/majora.bin.o
ulala.elf: $(DEFAULT) arm9/ulala.bin.o
happy_mask_salesman.elf: $(DEFAULT) arm9/happy_mask_salesman.bin.o
TARGET = arm-none-eabi-
AARCH = -march=armv4t -mlittle-endian
OBJARCH = -O elf32-littlearm -B armv4t
LDSCRIPT = cartridge.lds
include common.mk
%.data.h: %.data
$(BUILD_BINARY_H)
%.data.pal.h: %.data.pal
$(BUILD_BINARY_H)
.PHONY: phony registers