mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +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
399 B
Bash
Executable file
14 lines
399 B
Bash
Executable file
#!/bin/sh -x
|
|
if test -d native; then
|
|
cd native
|
|
make
|
|
cd ../powerpc64-ps3-elf
|
|
ln -fs ../native/tools/qfcc/source/qfcc .
|
|
ln -fs ../native/tools/pak/pak .
|
|
fi
|
|
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
|
|
|
|
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*
|