What is a Makefile target?

A simple makefile consists of “rules” with the following shape: target … : prerequisites … recipe … … A target is usually the name of a file that is generated by a program ; examples of targets are executable or object files. A target can also be the name of an action to carry out, such as ‘ clean ‘ (see Phony Targets).

Read more

What is dynamic library in C?

Dynamic libraries are a collection of object files which are referenced at build time to give the executable information how they will eventually be used, but they aren’t used until run time . In other words, these objects are dynamically linked into executables that use them.

Read more

What is Rpath in Makefile?

In computing, rpath designates the run-time search path hard-coded in an executable file or library . … The rpath of an executable or shared library is an optional entry in the . dynamic section of the ELF executable or shared libraries, with the type DT_RPATH , called the DT_RPATH attribute.

Read more

What is Ldflags in Makefile?

The make-specific variables (the ones in capital letters) follow a name convention such that: CC refers to the compiler (gcc in this case); CFLAGS contains compiler directives/options; and LDFLAGS is a list of link (or “load”) directives (here, instructions to link with the C math library).

Read more