TOMS418 is a FORTRAN77 program, using single precision arithmetic, which implements ACM TOMS algorithm 418, for the approximate integration of functions of the form F(X)*COS(W*X) or F(X)*SIN(W*X).
While the text of many ACM TOMS algorithms is available online through ACM: http://www.acm.org/pubs/calgo or NETLIB: http://www.netlib.org/toms/index.html, most of the early algorithms are not available. This is one of them. I typed it in.
Bo Einarsson
INTLIB includes routines to do Filon quadrature.
You can go up one level to the FORTRAN77 source codes.