Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

mp3codec: mp3main.o mp3utils.o mp3codec.o gcc -o mp3codec mp3main.o mp3utils.o mp3codec.o mp3main.o: mp3main.c mp3.h mp3int.h gcc -c mp3main.c mp3utils.o: mp3utils.c mp3.h mp3int.h gcc -c mp3utils.c mp3codec.o:

mp3codec: mp3main.o mp3utils.o mp3codec.o gcc -o mp3codec mp3main.o mp3utils.o mp3codec.o mp3main.o: mp3main.c mp3.h mp3int.h gcc -c mp3main.c mp3utils.o: mp3utils.c mp3.h mp3int.h gcc -c mp3utils.c mp3codec.o: mp3codec.c mp3.h mp3int.h gcc -c mp3codec.c clean: rm -rf *.o mp3codec mp3utils.c

1.Suppose all required files are present, and I run the makefile successfully. Now I modify mp3.h. Assume that there is no error after modification. What are the files that get regenerated?

2. Suppose I realize that I need to add some constants in mp3utils.c whose declarations are found in new header.h header file. I make the appropriate changes in mp3utils.c (assume there is no error in the new C-code I write). But I am not sure where I should put the newheader.h file in the above makefile. Suggest where the newheader.h file should be put in the above make file.

3.Suppose I run make clean. What is the problem I will encounter in subsequent compilations of my code?

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions