build.sh.cmake 1.07 KB
Newer Older
1 2
#!/bin/sh

3
if [ -n "@ep_use_c_compiler_for_assembler@" ]
4
then
5 6 7 8 9 10
	export AS="@AUTOTOOLS_C_COMPILER@"
else
	if [ -n "@AUTOTOOLS_AS_COMPILER@" ]
	then
		export AS="@AUTOTOOLS_AS_COMPILER@"
	fi
11
fi
12 13 14 15 16 17 18 19
export CC="@AUTOTOOLS_C_COMPILER@"
export CXX="@AUTOTOOLS_CXX_COMPILER@"
export OBJC="@AUTOTOOLS_OBJC_COMPILER@"
export LD="@AUTOTOOLS_LINKER@"
export AR="@AUTOTOOLS_AR@"
export RANLIB="@AUTOTOOLS_RANLIB@"
export STRIP="@AUTOTOOLS_STRIP@"
export NM="@AUTOTOOLS_NM@"
20 21 22
export CC_NO_LAUNCHER="@AUTOTOOLS_C_COMPILER_NO_LAUNCHER@"
export CXX_NO_LAUNCHER="@AUTOTOOLS_CXX_COMPILER_NO_LAUNCHER@"
export OBJC_NO_LAUNCHER="@AUTOTOOLS_OBJC_COMPILER_NO_LAUNCHER@"
23

24 25 26 27 28 29
ASFLAGS="@ep_asflags@"
CPPFLAGS="@ep_cppflags@"
CFLAGS="@ep_cflags@"
CXXFLAGS="@ep_cxxflags@"
OBJCFLAGS="@ep_objcflags@"
LDFLAGS="@ep_ldflags@"
30

31
export PATH="$PATH:@AUTOTOOLS_PROGRAM_PATH@"
Ghislain MARY's avatar
Ghislain MARY committed
32 33
export PKG_CONFIG="@LINPHONE_BUILDER_PKG_CONFIG@"
export PKG_CONFIG_PATH="@LINPHONE_BUILDER_PKG_CONFIG_PATH@"
34 35
export PKG_CONFIG_LIBDIR="@LINPHONE_BUILDER_PKG_CONFIG_LIBDIR@"

36
cd "@ep_build@"
37
make V=@AUTOTOOLS_VERBOSE_MAKEFILE@ @ep_make_options@ @ep_redirect_to_file@