ysyx-workbench/nemu/tests/Makefile

10 lines
215 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