Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago