ysyx-workbench/nemu/tests/Makefile

11 lines
220 B
Makefile
Raw Normal View History

2024-01-13 02:38:20 +00:00
TEST_SRCS += tests/expr_test.c
2024-01-13 03:42:35 +00:00
YACC = bison
2024-01-13 02:38:20 +00:00
$(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
2024-03-06 04:50:56 +00:00
@$@