> 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 01:07:20 up 1 day 1:23, 2 users, load average: 1.59, 1.88, 1.78
This commit is contained in:
parent
b88c898e3b
commit
6b0a221401
4 changed files with 132 additions and 4 deletions
|
@ -13,8 +13,6 @@
|
|||
# See the Mulan PSL v2 for more details.
|
||||
#**************************************************************************************/
|
||||
|
||||
.EXPORT:
|
||||
|
||||
# Sanity check
|
||||
ifeq ($(wildcard $(NEMU_HOME)/src/nemu-main.c),)
|
||||
$(error NEMU_HOME=$(NEMU_HOME) is not a NEMU repo)
|
||||
|
@ -61,3 +59,13 @@ else
|
|||
# Include rules to build NEMU
|
||||
include $(NEMU_HOME)/scripts/native.mk
|
||||
endif
|
||||
|
||||
.PHONY: test
|
||||
|
||||
include $(NEMU_HOME)/tests/Makefile
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue