> 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:17:14  up 2 days 11:12,  2 users,  load average: 1.39, 0.69, 0.39
This commit is contained in:
tracer-ysyx 2024-01-15 22:17:14 +08:00 committed by xinyangli
parent f5cdb499b8
commit c995a80ce8
7 changed files with 815 additions and 4 deletions

View file

@ -66,7 +66,8 @@ include $(NEMU_HOME)/tests/Makefile
all-tests: TEST_OBJS = $(filter-out $(OBJ_DIR)/src/nemu-main.o, $(OBJS))
all-tests: CFLAGS += $(shell pkg-config --cflags 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)/%)
test: $(addprefix $(OBJ_DIR), $(TEST_NAMES))
test: all-tests
@$(OBJ_DIR)/tests/expr_test