Useful links
code for statistical test in SAS, Stata and SPSS
Hardy: performing the Exact Test of Hardy-Weinberg Proportion for Multiple alleles
Fisher's exact test for 2 alleles: "A Note on exact test of Hardy-Weinberg equlibrium" by Wigginton
et al
Fisher's exact test
Fisher's exact test: up to 2 by 5 table
Examples of using
gcc
Introduction to Unix Make