diff --git a/arithmetic_progressions/Makefile b/arithmetic_progressions/Makefile index 461b0f8..47ae4b8 100644 --- a/arithmetic_progressions/Makefile +++ b/arithmetic_progressions/Makefile @@ -4,7 +4,7 @@ CFLAGS= -ggdb --std=c11 all: ap -segtree.o: segtree.c +%.o: %.c $(CC) -o $@ -c $^ $(CFLAGS) ap: arithmetic_progressions.c segtree.o