1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
The file "README" has more detailed information.
You should also read the file "docs/guide.html".
Requirements
=============
-GNU Make.
-SDL 1.2+ (http://www.libsdl.org/).
-An ANSI/ISO C++ compiler. SGE should conform to ANSI/ISO C++.
-Optional:
-FreeType 2+ (http://www.freetype.org/).
-SDL_Image (http://www.libsdl.org/projects/SDL_image/index.html).
-Some SDL knowledge.
Compile & install
==================
'make install'
Configure
==========
You can edit the file "Makefile.conf" to configure SGE. At the top of this
file you will see:
#C_ONLY = y
#NOTTF = y
#USE_IMG = y
#NO_CLASSES = y
#QUIET = y
Remove the # symbol to activate the following options:
C_ONLY
Makes it possible to link C code to SGE. See the README file for more
information.
NOTTF
Don't use the FreeType library.
USE_IMG
Use the SDL_Image library.
NO_CLASSES
Don't build C++ classes.
QUIET
Don't show build status before compiling.
Make options
=============
'make'
Builds a static SGE library (libSGE.a).
'make shared'
Builds a dynamic SGE library (libSGE.so).
'make shared-strip'
Same as 'make shared' but strips symbols from the libSGE.so file.
'make dll'
Builds a win32 dll file (SGE.dll). You must use a win32 cross compiler to do
this. You must also remove the # symbol on the "SGE_LIBS =...#-lstdc++" line
in Makefile.conf.
'make dll-strip'
Same as 'make dll' but strips symbols from the SGE.dll file.
'make clean'
Removes compiled files.
'make install'
Builds a dynamic SGE library and installs it with the headers to the same
install location as SDL. You can change this location by editing the PREFIX
line in Makefile.conf. You must probably be root to do this.
|