I was looking for a solution on this site and also tried google for some time now, but somehow I can\'t get it to work.
My source should be in the src directory and
Don't repeat the directory names in the compiler line. $< and $@ already have the directory names.
$<
$@
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(CC) -S $< -o $@ $(CC) -c $< -o $@