> 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 17:21:16 up 2 days 6:16, 2 users, load average: 0.33, 0.35, 0.54
This commit is contained in:
parent
a9b909b66f
commit
9362deec51
1 changed files with 3 additions and 3 deletions
|
@ -64,9 +64,9 @@ endif
|
||||||
|
|
||||||
include $(NEMU_HOME)/tests/Makefile
|
include $(NEMU_HOME)/tests/Makefile
|
||||||
TEST_NAMES = $(notdir $(basename $(TEST_SRCS)))
|
TEST_NAMES = $(notdir $(basename $(TEST_SRCS)))
|
||||||
$(TEST_NAMES):: TEST_OBJS = $(filter-out $(OBJ_DIR)/src/nemu-main.o, $(OBJS))
|
TEST_OBJS = $(filter-out $(OBJ_DIR)/src/nemu-main.o, $(OBJS))
|
||||||
$(TEST_NAMES):: CFLAGS += $(shell pkg-config --cflags check)
|
CFLAGS += $(shell pkg-config --cflags check)
|
||||||
$(TEST_NAMES):: LDFLAGS += $(shell pkg-config --libs check)
|
LDFLAGS += $(shell pkg-config --libs check)
|
||||||
$(TEST_NAMES):: $(OBJ_DIR)/tests/%
|
$(TEST_NAMES):: $(OBJ_DIR)/tests/%
|
||||||
|
|
||||||
test: $(addprefix $(OBJ_DIR)/tests/, $(TEST_NAMES))
|
test: $(addprefix $(OBJ_DIR)/tests/, $(TEST_NAMES))
|
||||||
|
|
Loading…
Reference in a new issue