[SDL] Adding a new video driver to the build

Ulrich Eckhardt doomster at knuut.de
Tue May 15 10:14:55 PDT 2007


On Tuesday 15 May 2007 19:39:13 Brian Gunn wrote:
> How can I add a new video driver to the build?  I managed to get it to
> "work" somewhat by modifying the Makefile, but it still doesn't work like I
> want because I still need to link the test programs with my
> SDL_XXX_video.o.  And I'm sure modifying the Makefile isn't the right way
> to do this anyway since it's created from Makefile.in.
>
> What's the correct way to add a new video driver to the build?

Well, typically you add the sourcefile to the Makefile.in and rerun the 
autotools or type 'make', which does this for you.

Just one remark though: sometimes, the Makefile.in is generated, too, from the 
Makefile.am (I hope I'm not switching those around now, don't have the SDL 
sources in front of me). Then, you add the sourcefile(s) to that file of 
course.

Uli



More information about the SDL mailing list