This is a sample C project that uses GObject Introspection.
% ./autogen.sh
% ./configure --enable-gtk-doc --prefix=/tmp/local
% make
% make install
You can find Sample-1.0.typelib generated by GObject Introspection in /tmp/local/lib/girepository-1.0/.