Answered step by step
Verified Expert Solution
Link Copied!

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 file_exists() out of main.c, and put it into a file called my_which_lib.c 2. Create a header file called my_which. h, and write a function signature for inside. It's just 1 line of code. 3. Make sure you include my_which.h inside of 4. Move all source files (main.c, my_which.h, and my_which_lib.c) into a folder called 5. Create a makefile called - static: compiles into a static library called . Move any intermediate objects into don't exist. into a shared library called libmy_which. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions