31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
EXAMPLE_NAME=simple_text
|
|
|
|
# userstack used by bootblock
|
|
USERSTACK_ADDRESS=7fffc
|
|
# if you change this you must also change link.script.x
|
|
BASE_ADDRESS=4000
|
|
# note: this must be high enough not to conflict with MFMbufE
|
|
|
|
NUM_COLORS=16
|
|
|
|
BOOTBLOCK_ASM=alpine_bootblock.s
|
|
OBJS=out/init.o out/utils.o out/image.o out/blittext.o out/cpu.o out/blit.o
|
|
|
|
IMAGES=font8x8.png
|
|
IMAGEDATA=$(addprefix out/, $(IMAGES:.png=.bin))
|
|
VASM_EXTRA_ARGS=-DNUM_COLORS=$(NUM_COLORS)
|
|
|
|
#SYMBOL_INFO=-M
|
|
LINKER_OPTIONS=-T link.script.x
|
|
|
|
include ../shared/base.mk
|
|
|
|
out/%.bin: ../assets/%.png
|
|
$(IMAGECON) --input $< $(IMAGECON_ARGS) --output-bitplanes --output-grey-palette-asm --output-palette-asm --output-palette --output out/$* --colors=$(NUM_COLORS) --use-palette palette.pal --full-color-palette-file --output-mask --transparent-color=0,0,0 --output-png
|
|
|
|
|
|
out/simple_image.o: constants.i macros.i
|
|
out/blittext.o: constants.i macros.i
|
|
out/blit.o: constants.i macros.i
|
|
out/main.o: $(IMAGEDATA) constants.i macros.i Makefile link.script.x palette.pal
|
|
out/init.o: constants.i Makefile |