> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 22:18:26  up 2 days 11:13,  2 users,  load average: 0.57, 0.60, 0.38
This commit is contained in:
tracer-ysyx 2024-01-15 22:18:26 +08:00 committed by xinyangli
parent 31aceb7bc9
commit 79f9a57165
2 changed files with 1 additions and 1 deletions

View file

@ -66,7 +66,6 @@ include $(NEMU_HOME)/tests/Makefile
all-tests: TEST_OBJS = $(filter-out $(OBJ_DIR)/src/nemu-main.o, $(OBJS)) all-tests: TEST_OBJS = $(filter-out $(OBJ_DIR)/src/nemu-main.o, $(OBJS))
all-tests: CFLAGS += $(shell pkg-config --cflags check) all-tests: CFLAGS += $(shell pkg-config --cflags check)
all-tests: LDFLAGS += $(shell pkg-config --libs check) all-tests: LDFLAGS += $(shell pkg-config --libs check)
all-tests: INC_PATH += $(NEMU_HOME)/src/isa/$(GUEST_ISA)/local-include
all-tests: $(TEST_SRCS:%.c=$(OBJ_DIR)/%) all-tests: $(TEST_SRCS:%.c=$(OBJ_DIR)/%)
test: all-tests test: all-tests

View file

@ -1,5 +1,6 @@
TEST_SRCS += tests/expr_test.c TEST_SRCS += tests/expr_test.c
YACC = bison YACC = bison
INC_PATH += $(NEMU_HOME)/src/isa/$(GUEST_ISA)/local-include
$(OBJ_DIR)/%: %.c $(TEST_OBJS) app $(OBJ_DIR)/%: %.c $(TEST_OBJS) app
@mkdir -p $(dir $@) @mkdir -p $(dir $@)