]> git.jsancho.org Git - lugaru.git/blob - makemac.sh
2c8c2f8c031030ca2f1897fb43693f778211f3ac
[lugaru.git] / makemac.sh
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 NCPU=`sysctl -n hw.ncpu`
7
8 for arch in ppc i386 x86_64 ; do
9     make -f makefile.old macosx=true macosx_arch=$arch clean
10     make -f makefile.old macosx=true macosx_arch=$arch -j$NCPU
11     # We always strip here. For debugging, you should do "make" directly.
12     strip ./lugaru-$arch
13     BINS="$BINS ./lugaru-$arch"
14 done
15
16 rm -f ./lugaru-bin
17 lipo -create -o ./lugaru-bin $BINS
18