Objdir will be created if the dir does not exist