mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 14:42:07 +00:00
365f20bb95
More or less. This is a bit of an experiment (which seems to work nicely) in that qfcc and pak are build natively in one build tree, then the full system is cross-built in another tree using the natively build qfcc and pak. Both trees are created by cross-configure.sh as sub-directories of the current directory. However, cross-configure.sh still assumes it is being run in a subdirectory of the main quakeforge directory. cross-make.sh checks if the native tree is in the current directory and if so, builds it, otherwise it just runs make for the cross-build tree (this allows for running cross-make in a sub-directory for things like sorting out build issues).
14 lines
467 B
Bash
Executable file
14 lines
467 B
Bash
Executable file
#!/bin/sh -x
|
|
mkdir native powerpc64-ps3-elf
|
|
cd native
|
|
../../configure --without-clients --without-servers --with-tools=qfcc,pak
|
|
cd ../powerpc64-ps3-elf
|
|
export PS3DEV=/usr/local/ps3dev
|
|
export PSL1GHT=$PS3DEV
|
|
export PKG_CONFIG_LIBDIR=$PS3DEV/portlibs/ppu/lib/pkgconfig
|
|
export PATH=$PS3DEV/spu/bin:$PS3DEV/ppu/bin:$PS3DEV/bin:$PATH
|
|
../../configure --host=powerpc64-ps3-elf \
|
|
--disable-sdl-cd \
|
|
--with-endian=big \
|
|
SDL_CONFIG=$PS3DEV/portlibs/ppu/bin/sdl-config \
|
|
$*
|