nds/Makefile
2024-09-03 22:42:12 -05:00

30 lines
545 B
Makefile

OPT = -Os
all: cartridge.bin
phony: res
res:
make -C res/
arm9/%.bin: phony
make -C arm9/ $(notdir $@)
arm7/%.bin: phony
make -C arm7/ $(notdir $@)
DEFAULT = header.o arm7/arm7.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
TARGET = arm-none-eabi-
AARCH = -march=armv4t -mlittle-endian
OBJARCH = -O elf32-littlearm -B armv4t
LDSCRIPT = cartridge.lds
include common.mk
.PHONY: phony res