SyntaxFix
Write A Post
Hire A Developer
Questions
Since you're using GNUmake, use a pattern rule for compiling object files:
$(OBJDIR)/%.o: %.c $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<