#include "fitsio.h" /* assuming CFITSIO routines will be called */
#include "pil.h" /* assuming PIL routines will be called */
#include "headas.h"
#define TOOLSUB my_task_subroutine_name /* use actual subroutine name here */
#include "headas_main.c"