32 lines
442 B
Bash
32 lines
442 B
Bash
#!/bin/sh
|
|||
|
|
|
||
|
|
WCFLAGS="-I${includedir}"
|
||
|
|
WLFLAGS="-L${libdir}"
|
||
|
|
WLIBS="-lWUtil ${INTLIBS}"
|
||
|
|
|
||
|
|
usage="Usage: get-wutil-flags [--cflags] [--ldflags] [--libs]"
|
||
|
|
|
||
|
|
if test $# -eq 0; then
|
||
|
|
echo "${usage}" 1>&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
while test $# -gt 0; do
|
||
|
|
case $1 in
|
||
|
|
--cflags)
|
||
|
|
echo $WCFLAGS
|
||
|
|
;;
|
||
|
|
--ldflags|--lflags)
|
||
|
|
echo $WLFLAGS
|
||
|
|
;;
|
||
|
|
--libs)
|
||
|
|
echo $WLIBS
|
||
|
|
;;
|
||
|
|
*)
|
||
|
|
echo "${usage}" 1>&2
|
||
|
|
exit 1
|
||
|
|
;;
|
||
|
|
esac
|
||
|
|
shift
|
||
|
|
done
|