ysyx-workbench/nemu/tests/Makefile
tracer-ysyx 9d9c6f46fd > compile NEMU
ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 22:22:48  up 2 days 11:17,  2 users,  load average: 0.21, 0.33, 0.31
2024-01-15 22:22:48 +08:00

9 lines
215 B
Makefile

TEST_SRCS += tests/expr_test.c
YACC = bison
$(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