terribleAssembly/Makefile

27 lines
567 B
Makefile
Raw Normal View History

2020-05-09 11:40:26 +12:00
NAME=animation
ASSEMBLER=rgbasm
LINKER=rgblink
POSTPROC=rgbfix
SRC=./src
BUILD=./build
ENTRY=${SRC}/main.asm
ROM_OUTPUT=${BUILD}/${NAME}.gb
OBJECT_OUTPUT=${BUILD}/${NAME}.o
2020-05-24 17:54:13 +12:00
SYMFILE_OUTPUT=${BUILD}/${NAME}.sym
2020-05-09 11:40:26 +12:00
2020-05-25 17:10:59 +12:00
LICENSEE="tA"
OLDLIC="0x33"
MBC="0x00"
VERSION="0"
PAD="0xFF"
RAM="0x00"
2020-05-28 15:25:27 +12:00
PP_FLAGS=-f lhg -j -t ${NAME} -k ${LICENSEE} -l ${OLDLIC} -m ${MBC} -n ${VERSION} -p ${PAD} -r ${RAM}
2020-05-25 17:10:59 +12:00
2020-05-09 11:40:26 +12:00
all : ${ENTRY}
${ASSEMBLER} -o ${OBJECT_OUTPUT} ${ENTRY} \
2020-05-24 17:54:13 +12:00
&& ${LINKER} -o ${ROM_OUTPUT} -n ${SYMFILE_OUTPUT} ${OBJECT_OUTPUT} \
2020-05-25 17:10:59 +12:00
&& ${POSTPROC} -v ${PP_FLAGS} ${ROM_OUTPUT}