Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Makefile Create a makefile to build your program Add the following rule: elements: elements.o elementops.o gcc -o elements elements.o elementops.o Make sure the second line

image text in transcribed
Makefile Create a makefile to build your program Add the following rule: elements: elements.o elementops.o gcc -o elements elements.o elementops.o Make sure the second line of your rule starts with tab and not spaces. Build your program by executing the makefile: Does your program build successfully? The building process needs to know about the dependencies. Add the following rule to your makefile: elements.o: elements.c elementops.h make gcc -c elements.c Try to build your program again using your makefile. Is it successful? Add the last missing rule to be able to build your program successfully. (Hint: The rule to generate elementOps.o is still missing) Build your program again using your makefile. You should get a message similar to: make: elements is up to date Try the following command to simulate modifying elements. o. Remember, the touch command sets the timestamp of the file to the current time. touch elements.o Now build your program again using your makefile. What files are regenerated? Now touch elementOps.c, then build your program again. What files are regenerated? Now touch elementOps.h, then build your program again. What files are regenerated

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

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago