ysyx-workbench/nemu/tests/Makefile
tracer-ysyx b97e2bf469 > 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
 02:55:41  up 1 day  3:11,  2 users,  load average: 0.95, 0.77, 0.65
2024-01-13 02:55:41 +08:00

7 lines
181 B
Makefile

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