Comments are welcome. Find the source code to the package you want to compile. Read all the installation and other instructions carefully. In particular look at the Makefile and understand which executables are created and how they are linked to other executables and libraries. Also figure out exactly what parts of the compiled code, libraries, include files, data, etc. are required to run the program.
Some programs require other programs in order to run.
You will have to find that software and package it also. There are a lot of options and details that you might need to know beyond what I will describe here. Your directory names and programs will be different of course. The SC gives some indication of the author or organization that created the program. Compile the program and install into the above directories You now must get your program to compile and run.