Question: Implement the Makefile to build your project. It will be a little different than the homework so pay attention to these instructions. Your Makefile should
Implement the Makefile to build your project. It will be a little different than the homework so pay attention to these instructions. Your Makefile should have at least the following directives:
- static will generate a static library (libbst.a) and put it in build/lib.
- shared will generate a shared library (libbst.so) and put it in build/lib
- bin will generate an executable from main.c called main, which statically links to libbst.a (it should make that as well if it doesn't exist). Put the executable in build/bin and the library in build/lib. Put object files in build/objects.
- all will build the static and shared libraries as well as main.
- clean will clean the project of all build directories and artifacts (*.so *.a *.o main)
- install will move the shared library to /usr/lib.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
