Welcome to LQ. .. ..

..
The usual approach would be, I think : cp Makefile Makefile-backup
&& cp Makefile.in Makefile.in-backup.
Then edit Makefile.in to include the new object, and run configure
to have a new Makefile created. ( And then run 'make'.)
.. Or you can edit the Makefile itself.
Running make -f Makefile.in is quite unusual.
Makefile and Makefile.in are not identical.
( 'diff Makefile.in Makefile' will show.)
It can of course be an error in your code.
Don't know, what "error 127" means.
..