Question: 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
Get step-by-step solutions from verified subject matter experts
