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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
78
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#!/bin/sh
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
set -e
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
set -x
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
NCPU=`sysctl -n hw.ncpu`
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
for arch in ppc i386 x86_64 ; do
109
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 92
diff changeset
     9
    make -f makefile.old macosx=true macosx_arch=$arch clean
d0ed8b1f4f7a Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents: 92
diff changeset
    10
    make -f makefile.old macosx=true macosx_arch=$arch -j$NCPU
92
069e5d31134b Reworked build system to make Mac Universal Binaries correctly on one machine.
Ryan C. Gordon <icculus@icculus.org>
parents: 78
diff changeset
    11
    # We always strip here. For debugging, you should do "make" directly.
160
40d5813fab4a Fixed makemac.sh
Ryan C. Gordon <icculus@icculus.org>
parents: 134
diff changeset
    12
    strip ./lugaru-$arch
40d5813fab4a Fixed makemac.sh
Ryan C. Gordon <icculus@icculus.org>
parents: 134
diff changeset
    13
    BINS="$BINS ./lugaru-$arch"
78
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
done
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
160
40d5813fab4a Fixed makemac.sh
Ryan C. Gordon <icculus@icculus.org>
parents: 134
diff changeset
    16
rm -f ./lugaru-bin
40d5813fab4a Fixed makemac.sh
Ryan C. Gordon <icculus@icculus.org>
parents: 134
diff changeset
    17
lipo -create -o ./lugaru-bin $BINS
78
da4f3011092a Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18