summaryrefslogtreecommitdiffhomepage
path: root/vars/libfirm.vars
blob: b9898971a79a1b65f8c5e1af154d01099e2a2aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# set -o errexit -o noglob are assumed.
#

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() {
	make ${PKG_MAKEFLAGS_BUILD} DESTDIR=../../sysroot install;
	make ${PKG_MAKEFLAGS_BUILD} DESTDIR="${PREFIX_NATIVE}" install;
};

pkg_cparser_install_make() {
	make ${PKG_MAKEFLAGS_BUILD} DESTDIR=../../sysroot install;
	make ${PKG_MAKEFLAGS_BUILD} DESTDIR="${PREFIX_NATIVE}" install;
};

# vim:filetype=sh