> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
 17:40:39  up  17:56,  2 users,  load average: 0.54, 0.46, 0.45
This commit is contained in:
tracer-ysyx 2024-01-12 17:40:39 +08:00 committed by xinyangli
parent 3ed5a7e2c2
commit 1b4338bb0f
5 changed files with 62 additions and 51 deletions

View file

@ -35,8 +35,8 @@
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
#ifndef YY_YY_SRC_MONITOR_SDB_ADDR_EXP_H_INCLUDED
# define YY_YY_SRC_MONITOR_SDB_ADDR_EXP_H_INCLUDED
#ifndef YY_YY_SRC_MONITOR_SDB_ADDREXP_H_INCLUDED
# define YY_YY_SRC_MONITOR_SDB_ADDREXP_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
@ -81,4 +81,4 @@ extern YYSTYPE yylval;
int yyparse (void);
#endif /* !YY_YY_SRC_MONITOR_SDB_ADDR_EXP_H_INCLUDED */
#endif /* !YY_YY_SRC_MONITOR_SDB_ADDREXP_H_INCLUDED */

View file

@ -1,13 +1,13 @@
SRCS-y += src/monitor/sdb/addr-exp.c src/monitor/sdb/addr-lex.c
SRCS-y += src/monitor/sdb/addrexp.tag.c src/monitor/sdb/addrexp.yy.c
INC_PATH += src/monitor/sdb
LFLAGS += -DYY_NO_UNPUT -DYY_NO_INPUT
/home/xin/repo/ysyx-workbench/nemu/build/obj-riscv32-nemu-interpreter/src/monitor/sdb/addr-exp.c: src/monitor/sdb/addr-exp.y
$(BUILD_DIR)/src/monitor/sdb/addr-exp.c: src/monitor/sdb/addr-exp.y
@echo + YACC $<
@mkdir -p $(dir $@)
@$(YACC) $(YFLAGS) --header=$(<:.y=.h) -o $@ $<
/home/xin/repo/ysyx-workbench/nemu/build/obj-riscv32-nemu-interpreter/src/monitor/sdb/addr-lex.c: src/monitor/sdb/addr-lex.l /home/xin/repo/ysyx-workbench/nemu/build/obj-riscv32-nemu-interpreter/src/monitor/sdb/addr-exp.c
$(BUILD_DIR)/src/monitor/sdb/addr-lex.c: src/monitor/sdb/addr-lex.l $(BUILD_DIR)/src/monitor/sdb/addr-exp.c
@echo + LEX $<
@mkdir -p $(dir $@)
@$(LEX) $(LFLAGS) -o $@ $<