Production of gasoline and diesel fuel