|
123456789101112131415161718192021222324252627 |
- #!/bin/bash
-
- set -e
-
- # Preparation
- _FLAGS="-I/opt/kxstudio/include -Werror"
- export CFLAGS="${_FLAGS}"
- export CXXFLAGS="${_FLAGS}"
- export LDFLAGS="-L/opt/kxstudio/lib"
- export PATH=/opt/kxstudio/bin:${PATH}
- export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig:${PKG_CONFIG_PATH}
-
- # Start clean
- make distclean >/dev/null
-
- # Print available features
- make features
-
- # Build native stuff
- make all posix32
-
- # Build wine bridges
- make wine32 wine64
-
- # Build windows binaries for bridges
- env PATH=/opt/mingw32/bin:${PATH} make win32 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++
- env PATH=/opt/mingw64/bin:${PATH} make win64 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++
|