makemac.sh
author Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 15 May 2010 22:04:10 -0500
changeset 267 dc53d2faef95
parent 160 40d5813fab4a
permissions -rwxr-xr-x
Moved 'resource.h' inclusion in 'OpenGL_Windows.cpp' to only be included on Win32 platform

#!/bin/sh

set -e
set -x

NCPU=`sysctl -n hw.ncpu`

for arch in ppc i386 x86_64 ; do
    make -f makefile.old macosx=true macosx_arch=$arch clean
    make -f makefile.old macosx=true macosx_arch=$arch -j$NCPU
    # We always strip here. For debugging, you should do "make" directly.
    strip ./lugaru-$arch
    BINS="$BINS ./lugaru-$arch"
done

rm -f ./lugaru-bin
lipo -create -o ./lugaru-bin $BINS