2023-03-03 19:36:28 +00:00
|
|
|
SOURCE=brainfuck_interpreted.asm brainfuck_compiled.asm brainfuck_mandelbrot.asm
|
2023-02-16 01:46:22 +00:00
|
|
|
BINARIES=$(subst .asm,.txt,${SOURCE})
|
|
|
|
BUILD_FILES=${BINARIES}
|
|
|
|
BUILD_FILES+=$(subst .asm,.memdump,${SOURCE})
|
2023-03-05 00:10:55 +00:00
|
|
|
BUILD_FILES+=$(subst .asm,.fst,${SOURCE})
|
2023-02-16 01:46:22 +00:00
|
|
|
BUILD_FILES+=$(subst .asm,.bin,${SOURCE})
|
|
|
|
|
|
|
|
all: ${BINARIES}
|
|
|
|
|
2023-03-03 19:36:28 +00:00
|
|
|
brainfuck_interpreted.bin: brainfuck_interpreter_v0.asm hello_9086.bf.asm
|
|
|
|
brainfuck_compiled.bin: brainfuck_compiler_v1.asm hello_9086.bf.asm
|
|
|
|
brainfuck_mandelbrot.bin: brainfuck_compiler_v1.asm mandelbrot.bf.asm
|
|
|
|
|
|
|
|
%.bf.asm:%.bf
|
|
|
|
${Q}sed "s/[a-zA-Z\* ]//g;/^$$/d;s/^/.ASCII '/;s/\$$/'/" "$^" > $@
|
2023-02-19 00:20:53 +00:00
|
|
|
|
2023-02-22 01:51:14 +00:00
|
|
|
NO_ASM=0
|
2023-02-16 01:46:22 +00:00
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(call QUIET_CLEAN,boot_code)
|
2023-03-05 00:10:55 +00:00
|
|
|
${Q}rm -f $(BUILD_FILES) *.bf.asm
|