4 Star 26 Fork 10

DENGCHOW / XEMU

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
DENGCHOW 提交于 2023-08-28 22:42 . add lcd, only work under ubuntu platform
#/*
# * Copyright {c} 2020-2021, SERI Development Team
# *
# * SPDX-License-Identifier: Apache-2.0
# *
# * Change Logs:
# * Date Author Notes
# * 2023-06-24 Lyons first version
# */
ifeq ($(shell uname), Linux)
TARGET = ./xemu
PARAM = -std=gnu99
LIB = -lcurses -lpthread -lxcb -lxcb-image -lm
else
TARGET = xemu.exe
PARAM =
LIB =
endif
BINFILE = ./riscv.bin
CFILE = ./perips/lcd/disp.c \
./xemu.c
PARAM += -DENABLE_TIMER -DENABLE_UART -DENABLE_LCD
.PHONY: build
build:
@gcc ${PARAM} ${CFILE} ${LIB} -o ${TARGET}
.PHONY: run
run:
@if [ -e ${BINFILE} ]; then echo; ${TARGET} ${BINFILE}; else echo "${BINFILE} missing!"; fi
.PHONY: clean
clean:
rm -rf ${TARGET} *.log
rm -rf *.bin
1
https://gitee.com/dengchow/xemu.git
git@gitee.com:dengchow/xemu.git
dengchow
xemu
XEMU
master

搜索帮助