Question: A) Modify the Makefile1 so that all files generates a .o file. - see link above for resources, or refer to our class slides. Files

 A) Modify the Makefile1 so that all files generates a .ofile. - see link above for resources, or refer to our classslides. Files that needs a .c to .o rule are: 1. runProgram.c

A) Modify the Makefile1 so that all files generates a .o file. - see link above for resources, or refer to our class slides. Files that needs a .c to .o rule are: 1. runProgram.c 2. statistics.c 3. getinput.c Have a separate target for each .o file, retain the \$(CFLAGS) variable and just add the -c flag to generate a .o file. B) Modify the runProgram target so the codependencies are .o files instead of .c files. Test it out: make -f Makefile1 clean make -f Makefile1 Output should look exactly same as below (but different date/stamp) (you must include the result of date command). \{csci-vcf1: ingrid:69\} date Sun Jan 2921:31:28 EST 2023 \{csci-vcf1: ingrid:68\} make clean; make -f Makefilel rm -f runProgram rm -f longProgram rm -f .0 rm -rf runProgram.dSYM rm -rf longProgram.dSYM gcc -g -Wall -pedantic -c runProgram.c gcc -g -Wall -pedantic -c getInput.c gcc -g -Wall -pedantic -c statistics.c gcc -g -Wall -pedantic statistics.o getInput.o runProgram.o -o runProgram gcc -g -Wall -pedantic longProgram.c -o longProgram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!