Smsq for sending sms


I am using Asterisk I am using smsq command to send sms from asterisk server.With reference to site,, I am getting errors when trying to compile smsq.c

ast:/usr/src/asterisk- make utils/smsq
gcc utils/smsq.c -o utils/smsq
utils/smsq.c:22:18: error: popt.h: No such file or directory
utils/smsq.c: In function ‘main’:
utils/smsq.c:453: error: ‘poptContext’ undeclared (first use in this function)
utils/smsq.c:453: error: (Each undeclared identifier is reported only once
utils/smsq.c:453: error: for each function it appears in.)
utils/smsq.c:453: error: expected ‘;’ before ‘optCon’

I installed libpopt-dev (Synaptic manager showed installed version is 1.16-1 after downloading libpopt-dev),But still i get the same errors as before.
Please tell me how to compile smsq.c?
The site mentions Makefile should be added with a line smsq: smsq.c. Please provide the make file path where it should be wriiten?