Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 .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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started