diff --git a/nemu/Makefile b/nemu/Makefile index 993c53f..03c8a4e 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -66,7 +66,6 @@ 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: all-tests diff --git a/nemu/tests/Makefile b/nemu/tests/Makefile index 6804b41..386d705 100644 --- a/nemu/tests/Makefile +++ b/nemu/tests/Makefile @@ -1,5 +1,6 @@ TEST_SRCS += tests/expr_test.c YACC = bison +INC_PATH += $(NEMU_HOME)/src/isa/$(GUEST_ISA)/local-include $(OBJ_DIR)/%: %.c $(TEST_OBJS) app @mkdir -p $(dir $@)