ysyx-workbench/nemu/tests/Makefile
tracer-ysyx bddf345f41 > 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
 03:15:33  up 1 day  3:31,  2 users,  load average: 0.44, 0.48, 0.55
2024-01-13 03:15:33 +08:00

8 lines
202 B
Makefile

TEST_SRCS += tests/expr_test.c
$(OBJ_DIR)/%: %.c $(TEST_OBJS) app
@mkdir -p $(dir $@)
@echo + CC $<
@$(CC) $(CFLAGS) -o $@.o -c $<
@echo + LD $@
@$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o