Commit a6f94b13 authored by Roland Levillain's avatar Roland Levillain
Browse files

Generate more uniform Makefile helpers for unit tests.

	* build-aux/build_unit_test.sh: Write Make variables with
	parentheses instead of braces.
	Add a space before `='.
parent 35f4bc0c
2013-09-11 Roland Levillain <roland@lrde.epita.fr>
Generate more uniform Makefile helpers for unit tests.
* build-aux/build_unit_test.sh: Write Make variables with
parentheses instead of braces.
Add a space before `='.
2013-09-11 Roland Levillain <roland@lrde.epita.fr>
* build-aux/build_unit_test.sh: Properly handle QT_LIBS.
......
......@@ -112,20 +112,20 @@ EOF
# Write specific flags if there are dependencies.
if ! (test -z "$IFDEF"); then
cppflags="${NAME}_CPPFLAGS="
ldflags="${NAME}_LDFLAGS="
cppflags="${NAME}_CPPFLAGS ="
ldflags="${NAME}_LDFLAGS ="
for i in $IFDEF; do
cppflags="${cppflags} \${${i}_CPPFLAGS} -DHAVE_${i}"
ldflags="${ldflags} \${${i}_LDFLAGS} "
cppflags="${cppflags} \$(${i}_CPPFLAGS) -DHAVE_${i}"
ldflags="${ldflags} \$(${i}_LDFLAGS)"
done
echo "$cppflags \${AM_CPPFLAGS}" >>"$output"
echo "$ldflags \${AM_LDFLAGS}" >>"$output"
echo "$cppflags \$(AM_CPPFLAGS)" >>"$output"
echo "$ldflags \$(AM_LDFLAGS)" >>"$output"
# Local hack: Handle the special case of Qt, which defines
# QT_LIBS, to be use for with ${NAME}_LDADD variables.
for i in $IFDEF; do
if test "x$i" = xQT; then
echo "${NAME}_LDADD= \${QT_LIBS} \${LDADD}" >>"$output"
echo "${NAME}_LDADD = \$(QT_LIBS) \$(LDADD)" >>"$output"
fi
done
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment