Ticket #1844: cross-env.sh

File cross-env.sh, 1.2 KB (added by andreasf, 17 years ago)

draft shell script

Line 
1#!/bin/sh
2
3export CPPFLAGS="\
4-I$HAIKUDIR/headers \
5-I$HAIKUDIR/headers/posix \
6-I$HAIKUDIR/headers/gnu \
7-I$HAIKUDIR/headers/glibc \
8-I$HAIKUDIR/headers/os \
9-I$HAIKUDIR/headers/os/app \
10-I$HAIKUDIR/headers/os/device \
11-I$HAIKUDIR/headers/os/drivers \
12-I$HAIKUDIR/headers/os/game \
13-I$HAIKUDIR/headers/os/interface \
14-I$HAIKUDIR/headers/os/kernel \
15-I$HAIKUDIR/headers/os/media \
16-I$HAIKUDIR/headers/os/mail \
17-I$HAIKUDIR/headers/os/midi \
18-I$HAIKUDIR/headers/os/midi2 \
19-I$HAIKUDIR/headers/os/net \
20-I$HAIKUDIR/headers/os/opengl \
21-I$HAIKUDIR/headers/os/storage \
22-I$HAIKUDIR/headers/os/support \
23-I$HAIKUDIR/headers/os/translation \
24-I$HAIKUDIR/headers/compatibility/bsd \
25"
26
27# workaround for <langinfo.h> in Mono's eglib, <libintl.h> in glib's configure
28export CPPFLAGS="$CPPFLAGS \
29-I$HAIKUDIR/src/system/libroot/posix/glibc/include \
30-I$HAIKUDIR/src/system/libroot/posix/glibc \
31-I$HAIKUDIR/src/system/libroot/posix/glibc/locale \
32-I$HAIKUDIR/src/system/libroot/posix/glibc/intl \
33"
34
35export LDFLAGS="\
36-B $HAIKUDIR/generated/objects/haiku/x86/release/system/glue/ \
37-B $HAIKUDIR/generated/objects/haiku/x86/release/system/glue/arch/x86/ \
38-L$HAIKUDIR/generated/objects/haiku/x86/release/system/libroot/ \
39-L$HAIKUDIR/generated/objects/haiku/x86/release/kits/ \
40"
41