2024-01-12 17:07:20 +00:00
|
|
|
TEST_SRCS += tests/expr_test.c
|
2024-01-13 03:18:45 +00:00
|
|
|
YACC = bison
|
2024-01-12 15:23:43 +00:00
|
|
|
|
2024-01-12 18:55:41 +00:00
|
|
|
$(OBJ_DIR)/%: %.c $(TEST_OBJS) app
|
2024-01-12 19:15:33 +00:00
|
|
|
@mkdir -p $(dir $@)
|
2024-01-12 17:07:20 +00:00
|
|
|
@echo + CC $<
|
2024-01-12 18:55:41 +00:00
|
|
|
@$(CC) $(CFLAGS) -o $@.o -c $<
|
|
|
|
@echo + LD $@
|
|
|
|
@$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o
|