comparison build-scripts/fatbuild.sh @ 3524:5668e43c256b

Allow overriding the number of build jobs
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Dec 2009 19:46:24 +0000
parents 10a12f77f597
children 72a1c4dda07c
comparison
equal deleted inserted replaced
3523:d38acda781ae 3524:5668e43c256b
2 # 2 #
3 # Build a fat binary on Mac OS X, thanks Ryan! 3 # Build a fat binary on Mac OS X, thanks Ryan!
4 4
5 # Number of CPUs (for make -j) 5 # Number of CPUs (for make -j)
6 NCPU=`sysctl -n hw.ncpu` 6 NCPU=`sysctl -n hw.ncpu`
7 NJOB=$NCPU 7 if test x$NJOB = x; then
8 NJOB=$NCPU
9 fi
8 10
9 # Generic, cross-platform CFLAGS you always want go here. 11 # Generic, cross-platform CFLAGS you always want go here.
10 CFLAGS="-O3 -g -pipe" 12 CFLAGS="-O3 -g -pipe"
11 13
12 # PowerPC 32-bit configure flags (10.4 runtime compatibility) 14 # PowerPC 32-bit configure flags (10.4 runtime compatibility)