Working clang makefile
Move code to hpp