standard library todayeverything in python that you need in is compiled into single python library file when the interpreter is built ( libpython dll on cygwinthe program' main function comes from your codeand depending on your platform and the extensions installed in your pythonyou may also need to link any external libraries referenced by the python library assuming no extra extension libraries are neededexample - is minimal makefile for building the program in example - under cygwin on windows againmakefile details vary per platformbut see python manuals for hints this makefile uses the python include-files path to find python in the compile step and adds the python library file to the final link step to make api calls available to the program example - pp \integrate\embed\basics\makefile cygwin makefile that builds executable that embeds pythonassuming no external module libs must be linked inuses python header fileslinks in the python lib fileboth may be in other dirs ( /usrin your installpylib /usr/local/bin pyinc /usr/local/include/python embed-simpleembed-simple gcc embed-simple - $(pylib-lpython - - embed-simple embed-simple oembed-simple gcc embed-simple - - - $(pyincto build program with this filelaunch make on it as usual (as beforemake sure indentation in rules is tabs in your copy of this makefile)/pp /integrate/embed/basicsmake - makefile gcc embed-simple - - - /usr/local/include/python gcc embed-simple - /usr/local/bin -lpython - - embed-simple things may not be quite this simple in practicethoughat least not without some coaxing the makefile in example - is the one actually used to build all of this section' programs on cygwin example - pp \integrate\embed\basics\makefile basics cygwin makefile to build all basic embedding examples at once pylib /usr/local/bin pyinc /usr/local/include/python basics embed-simple exe embed-string exe embed-object exe embed-dict exe python/ integration