Add rarchdb code to Makefile.common and griffin