#!/bin/sh

HELP="
Usage: $0 [--cflags] [--libs]\n
	cflags: shows the flags needed to compile\n
	libs: shows the flags needed to link\n
"

if test $# -eq 0;then
  echo -en $HELP  
  exit 0;
fi

for i in $*; do
  if [ "$i" = "--cflags" ]
    then echo -en "$(glib-config --cflags) "
  fi

  if [ "$i" = "--libs" ]
    then echo -en "$(glib-config --libs) -lggi -lm -lz"
  fi
done
echo
