File: cross-make.sh

package info (click to toggle)
tuxmath 2.0.3-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,488 kB
  • sloc: ansic: 18,791; sh: 4,416; makefile: 778; xml: 51; sed: 16
file content (18 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Script for crossbuilding of Windows binaries on Linux/Unix host
# using mingw port of GCC. Obtained from http://www.libsdl.org
# and lightly modified by David Bruce <davidstuartbruce@gmail.com>


# Path to crossbuild setup:
MINGW_DIR=/opt/mingw-cross-env
PREFIX=$MINGW_DIR/usr

# Architecture of the build machine's crossbuild setup
# as located by PREFIX:
TARGET=i686-pc-mingw32

PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
export PATH
exec make $*