Compile and install atift-0.1 library:

chmod +x configure
./configure --prefix=/usr/local
make && sudo make install

Install comedi library:

sudo apt-get install libcomedi-dev

Compile with the following command:

gcc main.c atinano.c keyboard_hit.c -o atitest -lcomedi -latift-0.1 -lm