2008-11-18 16:22:58 -05:00
|
|
|
#
|
|
|
|
## clean up all bits of libretroshare
|
|
|
|
echo make clobber
|
|
|
|
make clobber
|
|
|
|
#
|
|
|
|
## make the standard version (PPC)
|
2008-12-07 11:17:57 -05:00
|
|
|
echo make librs
|
|
|
|
make librs
|
2008-11-18 16:22:58 -05:00
|
|
|
#
|
|
|
|
LIB=libretroshare.a
|
|
|
|
LIB_PPC=libretroshare_ppc.a
|
|
|
|
LIB_X86=libretroshare_x86.a
|
|
|
|
|
|
|
|
MAC_SCRIPT="./scripts/config-macosx.mk"
|
|
|
|
|
2008-11-20 19:10:59 -05:00
|
|
|
echo cp lib/$LIB lib/$LIB_PPC librs
|
|
|
|
cp lib/$LIB lib/$LIB_PPC librs
|
2008-11-18 16:22:58 -05:00
|
|
|
|
|
|
|
echo make clobber
|
|
|
|
make clobber
|
|
|
|
|
2008-11-20 19:10:59 -05:00
|
|
|
echo make "MAC_I386_BUILD=1" librs
|
|
|
|
make "MAC_I386_BUILD=1" librs
|
2008-11-18 16:22:58 -05:00
|
|
|
|
|
|
|
echo cp lib/$LIB lib/$LIB_X86
|
|
|
|
cp lib/$LIB lib/$LIB_X86
|
|
|
|
|
|
|
|
# magic combine trick.
|
|
|
|
echo cd lib
|
|
|
|
cd lib
|
|
|
|
|
|
|
|
echo lipo -create libretroshare_*.a -output $LIB
|
|
|
|
lipo -create libretroshare_*.a -output $LIB
|
|
|
|
|
|
|
|
|