Pedophilia comes from the Greek for Child and Friendship. The technical term for the modern connotation of pedophilia is paedophilia erotica, or a sexual preference for children.
Ephebophilia is the psychological and sexual preference of late pubescents by younger people. Root is ephebos (one who has arrived at puberty) and philia (friendship).
Hebephilia is preference for earlier pubescents, teleiophilia, from teliOS (greek for "full grown")
Gerontophilia, from geron (greek for "old man") is preference for the elderly.