#!/bin/csh

cp Makefile_nodep Makefile
if( ! $?CFITSIODIR ) then
  setenv CFITSIODIR ../cfitsio
endif
foreach f (*.c *.cc)
  gcc -MM -I$CFITSIODIR $f >> Makefile
end
