]> git.jsancho.org Git - lugaru.git/blob - makemac.sh
Merging cmake branch to the default branch.
[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 run/lugaru-$arch
13     BINS="$BINS run/lugaru-$arch"
14 done
15
16 rm -f run/lugaru-bin
17 lipo -create -o run/lugaru-bin $BINS
18