Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Take file _ exists ( ) out of main.c , and put it into a file called my _ which _ lib.c 2 . Create
Take fileexists out of main.c and put it into a file called mywhichlib.c Create a header file called mywhich. h and write a function signature for inside. It's just line of code. Make sure you include mywhich.h inside of Move all source files mainc mywhich.h and mywhichlib.c into a folder called Create a makefile called static: compiles into a static library called Move any intermediate objects into don't exist. into a shared library called libmywhich. so Move this file into a subdirectory called Move any intermediate objects into This directive should make those directories if they don't exist. all: compiles main.c into the executable. It should statically link to Move the finished executable into Move any intermediate objects into This directive should make those directories if they don't exist. clean: removes all build artifacts including the build directories.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started