Changed Makefile. And  I have installed OpenBLAS in ~/Documents/mycode/OpenBLAS/
Now g++ compiles with only the flag -lopenblas.