Define appropriate rules so that program chi can be compiled by its own Makefile automatically. Revise the Makefile for chi to make it look more like the Makefile for our HDF programs.
chi