Rules.shrc (989B)
1 # convert to absolute paths 2 top_srcdir="$(cd "${top_srcdir}" && pwd -L)" 3 top_builddir="$(cd "${top_builddir}" && pwd -L)" 4 5 # Paths for Lua modules (benchmarks and installed modules) 6 export LUA_CPATH="${top_builddir}/lua/5.1/?.so;${top_builddir}/bench/?.so;;" 7 export LUA_PATH="${top_srcdir}/lua/?.lua;${top_srcdir}/bench/?.lua;;" 8 export LUA_CPATH_5_2="${top_builddir}/lua/5.2/?.so;${top_builddir}/bench/?.so;;" 9 export LUA_PATH_5_2="${top_srcdir}/lua/?.lua;${top_srcdir}/bench/?.lua;;" 10 export LUA_CPATH_5_3="${top_builddir}/lua/5.3/?.so;${top_builddir}/bench/?.so;;" 11 export LUA_PATH_5_3="${top_srcdir}/lua/?.lua;${top_srcdir}/bench/?.lua;;" 12 13 # preserve stdout so we can print commands to terminal 14 exec 9>&1; 15 echo_cmd() { 16 printf "%s\n" "$*" >&9; 17 "$@"; 18 } 19 20 auto_soflags() { 21 case "$(uname -s)" in 22 Darwin) 23 printf -- "-bundle -undefined dynamic_lookup" 24 ;; 25 *) 26 printf -- "-fPIC -shared" 27 ;; 28 esac 29 } 30 31 auto_libs() { 32 case "$(uname -s)" in 33 Linux) 34 printf -- "-lrt" 35 ;; 36 *) 37 ;; 38 esac 39 } 40