makefile for c++ works for whatever query main source