O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Programs with the make Command

The make utility provides a mechanism for automating the compilation and linking of programs. If the program's source code comes with a makefile—and if the documentation says the program supports Linux—making the program work on your system should be quite easy.

The syntax of the make command is as follows:

make options make target

Because make works based on targets, it is often used to automate not only the building of programs but also other tasks such as program installation and object file maintenance. make runs based on dependencies, which means that a certain condition must be met before the system can carry out another action. This process is usually implemented to force make to build the program ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required