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