From 20bf8669d78ae42865ce2d4e1e57c661dc991c36 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 13 Jan 2024 01:11:44 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.1.69=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=2020=2016:00:29=20UTC?= =?UTF-8?q?=202023=20x86=5F64=20GNU/Linux=20=2001:11:44=20=20up=201=20day?= =?UTF-8?q?=20=201:27,=20=202=20users,=20=20load=20average:=201.55,=201.68?= =?UTF-8?q?,=201.74?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/tests/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nemu/tests/Makefile b/nemu/tests/Makefile index a43b7cf..3cd68a6 100644 --- a/nemu/tests/Makefile +++ b/nemu/tests/Makefile @@ -1,9 +1,5 @@ TEST_SRCS += tests/expr_test.c -$(OBJ_DIR)/tests/%.o: tests/%.c +$(OBJ_DIR)/%: %.c $(OBJS) @echo + CC $< - @$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CFLGAS) - -$(OBJ_DIR)/tests/%: $(OBJ_DIR)/test/%.o $(OBJS) - @echo + LD $< - @$(LD) -e test_main -o $@ $^ $(LDFLAGS) $(CFLGAS) + @$(CC) $(CFLAGS) -Wl,-e,test_main -o $@ $^ $(LIBS) $(LDFLAGS) $(CFLGAS)