Warp Rogue Compile Guide


Dependencies

SDL 1.2.9 or higher

Portability

Should be portable to all platforms where int is 32 bit (that includes all common
"64 bit" desktop platforms i.e. yes it will work on Linux x86-64).
Only the RNG depends on this BTW. However, ints SMALLER than 32 bit will probably
cause problems elsewhere too.

Make Files

windows.mak - Windows / MinGW (pure MinGW i.e. no MSYS)
linux.mak   - GNU/Linux / GCC 
mac.mak     - Mac OS X / GCC 


Building

All ports use make files and the process of building is similar on all platforms:

- CD to the /src directory

- execute: [make tool] -f[make file] release
  example: mingw32-make -fwindows.mak release

- an executable called "wrogue" should be generated in the main program directory
  

General Instructions for Unsupported Compilers
 
- add the following directories to the include path of your compiler:
  /src/include, /src/lib

  Make sure that these directories are searched by your compiler
  BEFORE all other directories! This is necessary because otherwise
  your compiler might include wrong header files!

- add all .c files in the /src directory and its subdirectories, except
  the files in /src/platform to your project/make file

- add the platform .c file for your target platform to your project/make file 
  example: /src/platform/windows/platform_win.c  

- add the SDL platform .c file (/src/platform/sdl/platform_sdl.c) to your 
  project/make file 

 