generate declaration file