i686-w64-mingw32-build.sh 590 B

1234567891011121314151617
  1. #!/bin/sh
  2. PREFIX="i686-w64-mingw32"
  3. INST_DIR="/usr/$PREFIX"
  4. export CC="$PREFIX-gcc"
  5. export CXX="$PREFIX-g++"
  6. export CPP="$PREFIX-cpp"
  7. export RANLIB="$PREFIX-ranlib"
  8. export PATH="/usr/$PREFIX/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
  9. mkdir -p w32
  10. cd w32
  11. ../configure --host="$PREFIX" --build="$(../autotools/config.guess)" \
  12. --with-wx-prefix="$INST_DIR" --with-sdl-prefix="$INST_DIR" \
  13. --enable-sdl-static LDFLAGS="-static"
  14. make -j8
  15. strip -s src/xdre.exe
  16. zip -j -9 ../xdre-w32.zip src/xdre.exe src/prboom-plus/data/prboom-plus.wad ../README.md ../COPYING