Including just the 2D graphing library in a Mac App

I want to use just the graf2d library in a OSX application. Is this possible?

yes, of course.
You’ll just need to use the correct compiler flags for the directory where the library is located and the name of the library. For run time then, you’ll have to make sure the shared library is found by the loader, e.g. with setting correctly the the DYLD_LIBRARY_PATH environment variable.