attempt to use autofoo
[mplib] / build.cross
1 #!/bin/sh
2
3 # cross-compile on linux using mingw32 for windows
4
5 MAKE=make
6 STRIP=strip
7 PATH=/usr/mingw32/mingw32/bin:$PATH
8
9 rm -rf build-win
10 mkdir build-win
11 mkdir build-win/texk
12 cd build-win/texk
13 ../../src/texk/configure --host=i386-linux --enable-shared=no || exit 1 
14 # make the kpathsea library
15 (cd kpathsea && $MAKE ../kpathsea/libkpathsea.la ) || exit 1
16 # make the newmpost binary
17 cp -a ../../src/texk/web2c .
18 (cd web2c/mpdir; $MAKE ) || exit 1
19 mv  web2c/mpdir/newmpost web2c/mpdir/newmpost.exe
20 $STRIP web2c/mpdir/newmpost.exe
21 # go back
22 cd ../..
23 # show the results
24 ls -l build-win/texk/web2c/mpdir/newmpost.exe
25
26