53 lines
1.7 KiB
Makefile
53 lines
1.7 KiB
Makefile
# This file is part of the 9086 project.
|
|
#
|
|
# Copyright (c) 2023 Efthymios Kritikos
|
|
#
|
|
# 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/>.
|
|
#
|
|
|
|
SYSTEM_VVP=system/system.vvp
|
|
VERILATOR_BIN=system/obj_dir/Vsystem
|
|
BOOT_CODE=boot_code/brainfuck_mandelbrot.txt
|
|
GTKWSAVE=./gtkwave_savefile.gtkw
|
|
MICROCODE=system/ucode.txt
|
|
BOOTABLES=boot_code/brainfuck_compiled.txt boot_code/brainfuck_interpreted.txt ${BOOT_CODE}
|
|
|
|
shim:
|
|
@echo The processor\'s output handling is being rewritten so the usual mandelbrot program isn\'t working. please git checkout d93c92c00572d812c76d1b42969741d8cfce8d4d
|
|
|
|
NO_ASM=1
|
|
include common.mk
|
|
|
|
.PHONY: ${BOOTABLES}
|
|
.PHONY: ${subst .txt,.bin,${BOOTABLES}}
|
|
|
|
${BOOTABLES} ${subst .txt,.bin,${BOOTABLES}} :
|
|
${Q}make ${MAKEOPTS} -C boot_code $(subst boot_code/,,$@)
|
|
|
|
boot_code/%.txt:
|
|
${Q}make ${MAKEOPTS} -C boot_code $(subst boot_code/,,$@)
|
|
|
|
.PHONY:${SYSTEM_VVP}
|
|
${SYSTEM_VVP}:
|
|
${Q}make ${MAKEOPTS} -C system system.vvp
|
|
|
|
.PHONY:${VERILATOR_BIN}
|
|
${VERILATOR_BIN}:
|
|
${Q}make ${MAKEOPTS} -C system obj_dir/Vsystem
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
${Q}make ${MAKEOPTS} -C system clean
|
|
${Q}make ${MAKEOPTS} -C boot_code clean
|