|
Exercises with Makefiles.
Simple Makefile:
Download Makefile1 into directory code_static, created
during the exercises with the static library compilation.
Check the content of the Makefile:
Run make for compilation:
Notice the sequence of the compilation steps.
Run the command make again.
Modify the time stamps of main.c then re-run make
and notice the compilation steps made:
Modify the time stamps of Scalar_Product.h then re-run make
and notice the compilation steps made:
Modify the time stamps of Scalar_Product.c then re-run make
and notice the compilation steps made:
Makefile containing macros, suffix rules, and phony targets.
Download Makefile6 into directory code_static:
See the content of Makefile6:
Run the following command to remove the compiled files:
Verify there is no longer files app.x, *.o, and libScalar_Product.a in directory code_static.
Run compilation:
Install the compiled binary, app.x and the library,
libScalar_Product.a
into /usr/local:
Check if files /usr/local/bin/app.x and /usr/local/lib/libScalar_Product.a have been created.
Remove the installed files:
Verify taht the files have been removed:
|
|