Progress xsthammer scripts
[yosys.git] / yosys-config.in
1 #!/bin/sh
2
3 help() {
4 { echo; echo "Usage: $0 { --cxx | --cxxflags | --ldflags | --ldlibs }"; } >&2
5 exit 1
6 }
7
8 if [ $# -eq 0 ]; then
9 help
10 fi
11
12 for opt; do
13 case "$opt" in
14 --cxx)
15 echo -n '@CXX@ ' ;;
16 --cxxflags)
17 echo -n '@CXXFLAGS@ ' ;;
18 --ldflags)
19 echo -n '@LDFLAGS@ ' ;;
20 --ldlibs)
21 echo -n '@LDLIBS@ ' ;;
22 --help|-\?)
23 help ;;
24 *)
25 echo -n "$opt "
26 esac
27 done
28 echo
29
30 exit 0