generate link declarations and filter by dependency type.