The angle of attack of an airfoil is the angle Eric Weisstein's World of Math between the airfoil and the relative wind. Ideally, the direction of the wind is measured in the free stream, i.e., far enough away that it is undisturbed by the airfoil. The angle Eric Weisstein's World of Math is measured relative to some reference on the airfoil, and common choices of reference include
Drag, Lift, Lift Coefficient, Pitch, Roll, Yaw
References
Denker, J. S. See How It Flies: New Spin on the Perceptions, Procedures, and Principles of Flight. http://www.monmouth.com/~jsd/how/htm/aoa.html.