> 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 16:01:06 up 16:16, 2 users, load average: 0.51, 0.45, 0.54
This commit is contained in:
parent
affc1c5ff9
commit
1ecdd3e6e2
2 changed files with 4 additions and 10 deletions
|
@ -40,16 +40,6 @@ $(OBJ_DIR)/%.o: %.cc
|
|||
@$(CXX) $(CFLAGS) $(CXXFLAGS) -c -o $@ $<
|
||||
$(call call_fixdep, $(@:.o=.d), $@)
|
||||
|
||||
$(OBJ_DIR)/%-lex.l: %-exp.y
|
||||
@echo + YACC $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(YACC) $(YFLAGS) -H $(<:.y=.h) -o $@ $<
|
||||
|
||||
$(OBJ_DIR)/%.c: %-lex.l
|
||||
@echo + LEX $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(LEX) $(LFLAGS) -o $@ $<
|
||||
|
||||
# Depencies
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
static int is_batch_mode = false;
|
||||
|
||||
extern int yyparse(void);
|
||||
|
||||
// command handlers
|
||||
static int cmd_help(char *args);
|
||||
static int cmd_c(char *args);
|
||||
|
@ -284,6 +286,8 @@ void sdb_mainloop() {
|
|||
cmd_c(NULL);
|
||||
return;
|
||||
}
|
||||
// int res = yyparse();
|
||||
// exit(res);
|
||||
|
||||
for (char *str; (str = rl_gets()) != NULL;) {
|
||||
char *str_end = str + strlen(str);
|
||||
|
|
Loading…
Reference in a new issue