Commit e1cd30e4 authored by Gildas Bazin's avatar Gildas Bazin

* extras/contrib/bootstrap: more cleanup.

parent d532369b
...@@ -52,9 +52,7 @@ case $HOST in ...@@ -52,9 +52,7 @@ case $HOST in
ppc-darwin) ppc-darwin)
# Mac OS X < 10.4 # Mac OS X < 10.4
echo "HAVE_DARWIN_OS = 1" >> config.mak echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "EXTRA_CFLAGS =" >> config.mak EXTRA_CPPFLAGS=" -no-cpp-precomp"
echo "EXTRA_CPPFLAGS = -no-cpp-precomp" >> config.mak
echo "EXTRA_LDLAGS =" >> config.mak
echo "PATH = /bin:/usr/bin" >> config.mak echo "PATH = /bin:/usr/bin" >> config.mak
;; ;;
powerpc-apple-darwin8) powerpc-apple-darwin8)
...@@ -65,53 +63,55 @@ case $HOST in ...@@ -65,53 +63,55 @@ case $HOST in
echo "HAVE_DARWIN_OS = 1" >> config.mak echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=10.3" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=10.3" >> config.mak
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.0.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.3.0.sdk" >> config.mak
# echo "EXTRA_CFLAGS = -D\${ENVP} -isysroot \${MACOSX_SDK}" >> config.mak # EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK}"
echo "EXTRA_CPPFLAGS = -no-cpp-precomp" >> config.mak EXTRA_CPPFLAGS=" -no-cpp-precomp"
# echo "EXTRA_LDFLAGS = -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" >> config.mak # EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
echo "PATH = /bin:/usr/bin" >> config.mak echo "PATH = /bin:/usr/bin" >> config.mak
;; ;;
i586-pc-beos) i586-pc-beos)
echo "HAVE_BEOS = 1" >> config.mak echo "HAVE_BEOS = 1" >> config.mak
echo "EXTRA_CFLAGS =" >> config.mak
echo "EXTRA_CPPFLAGS =" >> config.mak
if test -f /boot/beos/system/lib/libbind.so; then if test -f /boot/beos/system/lib/libbind.so; then
echo "EXTRA_LDFLAGS = -lbind -lsocket" >> config.mak EXTRA_LDFLAGS=" -lbind -lsocket"
else else
echo "EXTRA_LDFLAGS = -lnet" >> config.mak EXTRA_LDFLAGS=" -lnet"
fi fi
if test "$HOST" = "$BUILD"; then if test "$HOST" = "$BUILD"; then
# Compiling on BeOS # Compiling on BeOS
echo "PATH = .:/boot/home/config/bin:/bin:/boot/apps:/boot/preferences:/boot/beos/apps:/boot/beos/preferences:/boot/develop/tools/gnupro/bin" >> config.mak PATH=".:/boot/home/config/bin:/bin:/boot/apps"
echo "LIBRARY_PATH = %A/lib:/boot/home/config/lib:/boot/beos/system/lib" >> config.mak PATH="${PATH}:/boot/preferences:/boot/beos/apps"
PATH="${PATH}:/boot/beos/preferences"
PATH="${PATH}:/boot/develop/tools/gnupro/bin"
echo "PATH = ${PATH}" >> config.mak
LIBRARY_PATH="${LIBRARY_PATH}:%A/lib:/boot/home/config/lib"
LIBRARY_PATH="${LIBRARY_PATH}:/boot/beos/system/lib"
echo "LIBRARY_PATH = ${LIBRARY_PATH}" >> config.mak
else else
# Cross compiling from Linux # Cross compiling from Linux
echo "PATH = /opt/beos-tools/bin:/opt/cross-tools/bin:/usr/bin:/bin" >> config.mak PATH="/opt/beos-tools/bin:/opt/cross-tools/bin"
PATH="${PATH}:/usr/bin:/bin"
echo "PATH = ${PATH}" >> config.mak
fi fi
;; ;;
i586-mingw32msvc) i586-mingw32msvc)
echo "HAVE_WIN32 = 1" >> config.mak echo "HAVE_WIN32 = 1" >> config.mak
echo "EXTRA_CFLAGS =" >> config.mak
echo "EXTRA_CPPFLAGS =" >> config.mak
echo "EXTRA_LDFLAGS =" >> config.mak
echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak
echo "EXTRA_PATH =" >> config.mak
;; ;;
i686-pc-cygwin) i686-pc-cygwin)
echo "HAVE_WIN32 = 1" >> config.mak echo "HAVE_WIN32 = 1" >> config.mak
echo "EXTRA_CFLAGS = -mno-cygwin" >> config.mak EXTRA_CFLAGS=" -mno-cygwin"
echo "EXTRA_CPPFLAGS = -mno-cygwin" >> config.mak EXTRA_CPPFLAGS=" -mno-cygwin"
echo "EXTRA_LDFLAGS = -mno-cygwin" >> config.mak EXTRA_LDFLAGS=" -mno-cygwin"
echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak echo "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig" >> config.mak
echo "EXTRA_PATH =" >> config.mak
;; ;;
*) *)
echo "EXTRA_CFLAGS =" >> config.mak
echo "EXTRA_CPPFLAGS =" >> config.mak
echo "EXTRA_LDFLAGS =" >> config.mak
echo "EXTRA_PATH =" >> config.mak
;; ;;
esac esac
echo "EXTRA_CFLAGS = $(EXTRA_CFLAGS)" >> config.mak
echo "EXTRA_CPPFLAGS = $(EXTRA_CPPFLAGS)" >> config.mak
echo "EXTRA_LDFLAGS = $(EXTRA_LDFLAGS)" >> config.mak
echo "EXTRA_PATH = $(EXTRA_PATH)" >> config.mak
if which curl >/dev/null; then if which curl >/dev/null; then
echo "WGET = curl -O" >> config.mak echo "WGET = curl -O" >> config.mak
elif wget --version >/dev/null 2>&1; then elif wget --version >/dev/null 2>&1; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment