10 lines
219 B
Makefile
10 lines
219 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
|
|
@$@
|