When things are added to the sources the result should build _at least with the Chosen Build System_. And that's autotools. [I am personally not happy about this choice, but that does not really matter here.
Also, the code should roughly follow LyX conventions if it is somewhere under src/*. The current state is far from satisfactory. It does not build with autotools and it looks crappy. Andre'