One example is when Makefile has newline (\).
OBJECTS = main.o \ program_1.o \ CFLAGS += -Werror
The Makefile after program_1.o is expecting another target object file because of \n. Remove this and you are good to go.