build: implement make cdb
Allow to build the compilation database, used by language servers used i.e. to add semantic features to editors (coc-vim in my case).