docs/README-emscripten.md
changeset 9782 fcf237e5e834
parent 9302 2ddb65f75084
child 10486 5bf595c48fd4
     1.1 --- a/docs/README-emscripten.md	Thu Jun 25 11:49:48 2015 -0700
     1.2 +++ b/docs/README-emscripten.md	Fri Jun 26 20:11:41 2015 +0200
     1.3 @@ -3,13 +3,17 @@
     1.4  
     1.5  Build:
     1.6  
     1.7 -    $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
     1.8 +    $ mkdir build
     1.9 +    $ cd build
    1.10 +    $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
    1.11      $ emmake make
    1.12  
    1.13  Or with cmake:
    1.14  
    1.15 -    $ emconfigure cmake ..
    1.16 -    $ make
    1.17 +    $ mkdir build
    1.18 +    $ cd build
    1.19 +    $ emcmake cmake ..
    1.20 +    $ emmake make
    1.21  
    1.22  To build one of the tests:
    1.23  
    1.24 @@ -22,7 +26,7 @@
    1.25  
    1.26  Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    1.27  
    1.28 -SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    1.29 +SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
    1.30  
    1.31      $ EMCONFIGURE_JS=1 emconfigure ../configure
    1.32      build as usual...