2023-12-07 19:21:31 +00:00
|
|
|
# This file is part of the 9086 project.
|
|
|
|
#
|
2024-02-10 15:52:13 +00:00
|
|
|
# Copyright (c) 2024 Efthymios Kritikos
|
2023-12-07 19:21:31 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
PRINT_PATH_PREFIX=./
|
2023-12-07 18:44:31 +00:00
|
|
|
SOURCE_FULL=brainfuck_interpreted.asm brainfuck_compiled.asm brainfuck_mandelbrot.asm pipeline_ideal.asm fibonacci.asm gnome_sort.asm cache_fill_and_empty.asm colored_led.asm
|
2024-02-09 23:28:21 +00:00
|
|
|
SOURCE_SHORT=bios.asm i2c_bootloader.asm
|
2023-12-07 18:44:31 +00:00
|
|
|
BINARIES=$(subst .asm,.txt,${SOURCE_FULL}) $(subst .asm,.stxt,${SOURCE_SHORT})
|
2023-02-16 01:46:22 +00:00
|
|
|
BUILD_FILES=${BINARIES}
|
2023-12-07 18:44:31 +00:00
|
|
|
BUILD_FILES+=$(subst .asm,.memdump,${SOURCE_FULL} ${SOURCE_SHORT})
|
|
|
|
BUILD_FILES+=$(subst .asm,.fst,${SOURCE_FULL} ${SOURCE_SHORT})
|
|
|
|
BUILD_FILES+=$(subst .asm,.bin,${SOURCE_FULL} ${SOURCE_SHORT})
|
|
|
|
BUILD_FILES+=$(subst .asm,.json,${SOURCE_FULL} ${SOURCE_SHORT})
|
2023-02-16 01:46:22 +00:00
|
|
|
|
|
|
|
all: ${BINARIES}
|
|
|
|
|
2023-03-14 07:20:30 +00:00
|
|
|
brainfuck_interpreted.bin: brainfuck_interpreter_v0.asm hello_9086.bf.asm dos_layer.asm
|
|
|
|
brainfuck_compiled.bin: brainfuck_compiler_v1.asm hello_9086.bf.asm dos_layer.asm
|
|
|
|
brainfuck_mandelbrot.bin: brainfuck_compiler_v1.asm mandelbrot.bf.asm dos_layer.asm
|
2023-11-12 13:30:12 +00:00
|
|
|
colored_led.bin: dos_layer.asm
|
2023-12-05 21:46:46 +00:00
|
|
|
bios.bin: LiteDram_init.asm brainfuck_compiler_v1.asm hello_9086.bf.asm dos_layer.asm
|
2024-02-09 23:28:21 +00:00
|
|
|
i2c_bootloader.bin: LiteDram_init.asm
|
2023-03-03 19:36:28 +00:00
|
|
|
|
2023-05-21 00:48:50 +00:00
|
|
|
fibonacci.bin: helpers.asm
|
|
|
|
gnome_sort.bin: helpers.asm
|
|
|
|
|
2023-03-03 19:36:28 +00:00
|
|
|
%.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
|
2023-12-08 22:10:11 +00:00
|
|
|
|
|
|
|
mrproper:
|