summaryrefslogtreecommitdiffhomepage
path: root/vars/libfirm.vars
diff options
context:
space:
mode:
Diffstat (limited to 'vars/libfirm.vars')
-rw-r--r--vars/libfirm.vars16
1 files changed, 16 insertions, 0 deletions
diff --git a/vars/libfirm.vars b/vars/libfirm.vars
index c9f2f33f..59ed78f1 100644
--- a/vars/libfirm.vars
+++ b/vars/libfirm.vars
@@ -6,4 +6,20 @@ pkg_libfirm_configure_pre() {
build_fileop mkdir cparser+libfirm/sysroot cparser+libfirm/build/libfirm;
};
+pkg_cparser_configure_pre() {
+ build_fileop mkdir cparser+libfirm/sysroot cparser+libfirm/build/cparser;
+ export CFLAGS_PATH="-I../../sysroot/include";
+ export LDFLAGS_PATH="-L../../sysroot/lib";
+};
+
+pkg_libfirm_install() {
+ make ${MAKEFLAGS} DESTDIR=../../sysroot install;
+ make ${MAKEFLAGS} DESTDIR="${PREFIX_NATIVE}" install;
+};
+
+pkg_cparser_install() {
+ make ${MAKEFLAGS} DESTDIR=../../sysroot install;
+ make ${MAKEFLAGS} DESTDIR="${PREFIX_NATIVE}" install;
+};
+
# vim:filetype=sh