X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=mingw_note.txt;h=c5ca2c777e2430fff0131c613147170db7a8efd6;hp=0e32e850e1b0970039790952628a4c1afee424bf;hb=a410368d7ed203c59512c77832c4b0cab4a42e05;hpb=e3c47ecd0908e10adfa0f39597813a0163d26705 diff --git a/mingw_note.txt b/mingw_note.txt index 0e32e850..c5ca2c77 100644 --- a/mingw_note.txt +++ b/mingw_note.txt @@ -1,9 +1,16 @@ -Darkplaces needs these files which do not come in the standard mingw installation, nor are supplied with darkplaces itself: -include/GL/gl.h (can be obtained in the opengl download hidden away on the microsoft website) -include/ddraw.h (part of DirectX) -include/dinput.h (part of DirectX) -include/dsound.h (part of DirectX) -include/wsipx.h (winsock IPX header, needed for net_wipx.c, which can be removed if you edit net_win.c a bit) +For compiling Darkplaces with MinGW, you need the following files which do not +come in the standard MinGW installation: + - include/ddraw.h + - include/dinput.h + - include/dsound.h +They are part of the DirectX SDK but can also be found in the original release +of Quake 1 source code (ftp://ftp.idsoftware.com/idstuff/source/q1source.zip). -Assuming you placed mingw in c:\mingw, you can simply type this to compile: -make -f makefile.mingw +Assuming the MinGW binaries are in your PATH, you compile Darkplaces by typing +"make release". Note that "make" may be named "mingw32-make", so you may want +to try "mingw32-make release" if the first command fails to run. + +For cross-compiling Win32 binaries on Linux using MinGW, you need to force the +makefile to use the MinGW compilation parameters, otherwise it will autodetect +the operating system it runs on and will use the corresponding parameters. You +can force it by appending "DP_MAKE_TARGET=mingw" at the end of the command line.