I\'m writing a little implementation of Conway\'s Game of Life in C. The source code is split in three files: main.c and functions.c/function
main.c
functions.c
function
Because you haven't told it that recompilation depends on functions.h.
functions.h
Try adding this to your Makefile:
%.o : functions.h
Alternatively, modify your existing rule to be:
%.o : %.c functions.h $(CC) -c $< -o $@