[SDL] Re: Windows compilers
rhk at newimage.com
Mon Jun 19 13:20:41 PDT 2000
Michael Vanecek wrote:
> I'm just now getting interested in cross compiling (which means I need
> to set up GCC for cross compiline). Would you mind posting or sending me
> an example of your build script? I assume it's a Makefile with an
> additional target?
> Ray Kelm wrote:
> > Garrett Banuk wrote:
> > >
> > > Hmm, whats involved in writing a program that works on both linux and
> > > windows? Using SDL of course. Like do you have to do alot of win API coding
> > > with special #ifdef WIN32? Doesn't SDL handle the winmain() function somehow?
> > Actually, if your app uses all SDL functions, and standard
> > C/C++ library calls, then there is very little effort required
> > at all. I even cross-compile my code and build both linux and
> > windows binaries from the same build script.
I am using autoconf, aclocal, and automake.
My current project is available on the web, but it's not
to a point where I wanted to announce it to the list yet :)
Here goes anyway:
It's a 2d shooter scrolling game, and is still under
rapid development, so take it easy on me...
I'll probably be moving it to sourceforge soon since my
site is only on a 64K ISDN, and can't handle a lot of
Included in the source tar.gz is the configure.in, Makefile.am,
and so on files to build for unix-like systems, and cross-build
More information about the SDL