yosys/yosys-config.in

31 lines
395 B
Plaintext
Raw Normal View History

#!/bin/sh
help() {
{ echo; echo "Usage: $0 { --cxx | --cxxflags | --ldflags | --ldlibs }"; } >&2
exit 1
}
if [ $# -eq 0 ]; then
help
fi
for opt; do
case "$opt" in
--cxx)
echo -n '@CXX@ ' ;;
--cxxflags)
echo -n '@CXXFLAGS@ ' ;;
--ldflags)
echo -n '@LDFLAGS@ ' ;;
--ldlibs)
echo -n '@LDLIBS@ ' ;;
--help|-\?)
help ;;
*)
echo -n "$opt "
esac
done
echo
exit 0