1 2 3 4 5 6 7 8 9 10 11 12 13 14
SRCS = add-tests.c calc.c sub-tests.c tests.c named-tests.c param-tests.c \ quick-tests.c OBJS = $(SRCS:.c=.o) all: example clean: $(RM) *.o *~ example example: $(OBJS) $(CC) -o example $(OBJS) .c.o: $(CC) -c $< -o $@