5 CCFLAGS
="$CCFLAGS -Wall -g"
6 OPTIM
="$OPTIM -O3 -funroll-loops"
9 # System-specific flags
13 CCFLAGS
="$CCFLAGS -Wno-multichar"
14 DEFINES
="$DEFINES SYS_BEOS"
15 LINKLIBS
="$LINKLIBS -lbe -ltracker"
19 6.0|
5.0.4) # Zeta or R5 / BONE beta 7
20 SYSTEM
="$SYSTEM / BONE"
21 LINKLIBS
="$LINKLIBS -lbind -lsocket"
23 5.0*) # R5 / net_server
24 SYSTEM
="$SYSTEM / net_server"
25 DEFINES
="$DEFINES BEOS_NETSERVER"
26 LINKLIBS
="$LINKLIBS -lnet"
29 echo "Unsupported BeOS version"
35 DEFINES
="$DEFINES SYS_DARWIN USE_PTHREAD"
36 LINKLIBS
="$LINKLIBS -lpthread"
40 DEFINES
="$DEFINES SYS_FREEBSD USE_PTHREAD"
41 LINKLIBS
="$LINKLIBS -pthread"
45 DEFINES
="$DEFINES SYS_NETBSD USE_PTHREAD"
46 LINKLIBS
="$LINKLIBS -lpthread"
50 DEFINES
="$DEFINES SYS_LINUX USE_PTHREAD _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64"
51 LINKLIBS
="$LINKLIBS -lpthread"
55 DEFINES
="$DEFINES SYS_CYGWIN USE_PTHREAD"
56 LINKLIBS
="$LINKLIBS -lpthread"
60 echo "Unsupported operating system"
63 echo "System: $SYSTEM"
65 # Check for endianness (we need to define WORDS_BIGENDIAN for libdvdread)
66 cat > testconf.c
<< EOF
70 return *( (char *) &i );
73 if ( cc
-o testconf testconf.c
&& .
/testconf
) > /dev
/null
2>&1
76 DEFINES
="$DEFINES WORDS_BIGENDIAN"
80 rm -f testconf.c testconf
84 cat << EOF > config.jam
92 LINKLIBS = $LINKLIBS ;
96 echo "To build HandBrake, run:"
97 echo " './jam' on a Mac (or 'make' to try the UB build method),"
98 echo " 'jam' on Linux or Windows."