You put in an extra slash:
OBJDIR := $(BUILD)/obj/
$(OBJDIR)/%.o: %.c
...
The rule, as written, will match the target release/obj//main.o
, but there is no rule that matches release/obj/main.o
.
Just remove the offending slash:
OBJDIR := $(BUILD)/obj