all$(basicsembedexeembedo gcc embed$ - $(pylib-lpython - - $embedoembedc gcc embed$ - - - $(pyinccleanrm - pyc $(basicscore on some platformsyou may need to also link in other libraries because the python library file used may have been built with external dependencies enabled and required in factyou may have to link in arbitrarily many more externals for your python libraryand franklychasing down all the linker dependencies can be tedious required libraries may vary per platform and python installso there isn' lot of advice can offer to make this process simple (this is cafter allthe standard development techniques will apply one hint hereif you're going to do much embedding work and you run into external dependency issueson some platforms you might want to build python on your machine from its source with all unnecessary extensions disabled in its build configuration files (see the python source package for detailsthis produces python library with minimal external requirementswhich may links more easily once you've gotten the makefile to workrun it to build all of this section' programs at once with python libraries linked in/pp /integrate/embed/basicsmake - makefile basics clean rm - pyc embed-simple exe embed-string exe embed-object exe embed-dict exe embed-bytecode exe core /pp /integrate/embed/basicsmake - makefile basics gcc embed-simple - - - /usr/local/include/python gcc embed-simple - /usr/local/bin -lpython - - embed-simple exe gcc embed-string - - - /usr/local/include/python gcc embed-string - /usr/local/bin -lpython - - embed-string exe gcc embed-object - - - /usr/local/include/python gcc embed-object - /usr/local/bin -lpython - - embed-object exe gcc embed-dict - - - /usr/local/include/python gcc embed-dict - /usr/local/bin -lpython - - embed-dict exe gcc embed-bytecode - - - /usr/local/include/python gcc embed-bytecode - /usr/local/bin -lpython - - embed-bytecode exe rm embed-dict embed-object embed-simple embed-bytecode embed-string after building with either makefileyou can run the resulting program as usual/pp /integrate/embed/basics/embed-simple embed-simple the meaning of life the meaning of python basic embedding techniques