4 Star 26 Fork 10

DENGCHOW / XEMU

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Makefile 735 Bytes
Copy Edit Raw Blame History
#/*
# * 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

Search