> 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:23:31 up 2 days 11:18, 2 users, load average: 0.45, 0.38, 0.33
This commit is contained in:
parent
9d9c6f46fd
commit
8094cf286e
1 changed files with 11 additions and 9 deletions
|
@ -49,15 +49,6 @@ CFLAGS_TRACE += -DITRACE_COND=$(if $(CONFIG_ITRACE_COND),$(call remove_quote,$(C
|
||||||
CFLAGS += $(CFLAGS_BUILD) $(CFLAGS_TRACE) -D__GUEST_ISA__=$(GUEST_ISA)
|
CFLAGS += $(CFLAGS_BUILD) $(CFLAGS_TRACE) -D__GUEST_ISA__=$(GUEST_ISA)
|
||||||
LDFLAGS += $(CFLAGS_BUILD)
|
LDFLAGS += $(CFLAGS_BUILD)
|
||||||
|
|
||||||
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: $(TEST_SRCS:%.c=$(OBJ_DIR)/%)
|
|
||||||
|
|
||||||
test: all-tests
|
|
||||||
@$(OBJ_DIR)/tests/expr_test
|
|
||||||
|
|
||||||
# Include rules for menuconfig
|
# Include rules for menuconfig
|
||||||
include $(NEMU_HOME)/scripts/config.mk
|
include $(NEMU_HOME)/scripts/config.mk
|
||||||
|
|
||||||
|
@ -69,4 +60,15 @@ else
|
||||||
include $(NEMU_HOME)/scripts/native.mk
|
include $(NEMU_HOME)/scripts/native.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
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: $(TEST_SRCS:%.c=$(OBJ_DIR)/%)
|
||||||
|
|
||||||
|
test: all-tests
|
||||||
|
@$(OBJ_DIR)/tests/expr_test
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
Loading…
Reference in a new issue