> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux
 11:14:17  up 1 day 14:42,  2 users,  load average: 0.23, 0.39, 0.26
This commit is contained in:
tracer-ysyx 2024-03-06 11:14:17 +08:00 committed by xinyangli
parent 66af7a5e2e
commit c8f5c23463

View file

@ -69,15 +69,15 @@ unit-tests: CFLAGS += $(shell pkg-config --cflags check)
unit-tests: LDFLAGS += $(shell pkg-config --libs check)
unit-tests: $(TEST_SRCS:%.c=$(OBJ_DIR)/%)
IMAGES = $(shell find $(IMAGES_PATH) -type f -name '*.bin')
IMAGES = $(patsubst %.bin, %, $(shell find $(IMAGES_PATH) -type f -name '*.bin'))
$(IMAGES): %: % $(BINARY)
$(IMAGES): %: %.bin $(BINARY)
-$(BINARY) -b $<
integration-tests: $(IMAGES)
@echo $(IMAGES_PATH)
test: unit-tests integration-tests
@$(OBJ_DIR)/tests/expr_test
.PHONY: test
.PHONY: test integration-tests