mirror of
https://github.com/buhman/nds.git
synced 2025-06-18 06:25:40 -04:00
41 lines
882 B
Makefile
41 lines
882 B
Makefile
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
|