Question: Question 1 (1 mark) Consider the Makefile CC=gcc CFLAGS=-Wall -Werror my Prog: b.o a. c.o $(CC) $(CFLAGS) - myProg b. a. c.o C.O : C.


Question 1 (1 mark) Consider the Makefile CC=gcc CFLAGS=-Wall -Werror my Prog: b.o a. c.o $(CC) $(CFLAGS) - myProg b. a. c.o C.O : C. c.h b.h $(CC) $(CFLAGS) -C C.C b.o : b.cb.h $(CC) $(CFLAGS) -c b.c a.0: a.ca.h $(CC) $(CFLAGS) - a. clean : rm-f *.o myProg and the directory listing $ ls -1 -rw-r--r-- 1 ashesh ashesh 241 Sep 27 18:06 Makefile -rw-r--r-- 1 ashesh ashesh 760 Sep 27 18:02 a.c -rw-r--r-- 1 ashesh ashesh 254 Sep 27 18:17 a.h -rw------- 1 ashesh ashesh 2664 Sep 27 18:44 a.o -rw-r--r-- 1 ashesh ashesh 1897 Sep 27 18:08 b.c -rw-r--r-- 1 ashesh ashesh 45 Sep 27 18:45 b.h -rw---- 1 ashesh ashesh 920 Sep 27 18:26 b.o -rw-r--r-- 1 ashesh ashesh 494 Sep 27 18:04 C.C -rw---- 1 ashesh ashesh 45 Sep 27 18:03 c.h -rw------- 1 ashesh ashesh 1984 Sep 27 18:26 0.0 -rWX------ 1 ashesh ashesh 17072 Sep 27 18:44 myProg $ What commands will be executed if we run the make command in this directory? (a) gcc -Wall -Werror -cb.c gcc -Wall -Werror -ca.c gcc -Wall -Werror -C C.C gcc-wall -Werror -o my Prog b.o a. c.o b) o gcc -Wall -Werror -cb.c gcc -Wall -Werror -o myProg b.o a.O c.0 (c) gcc -Wall -Werror -C C.C gcc -Wall -Werror - myProg b.o a.O c.o (d) gcc -Wall -Werror -cb.c gcc -Wall -Werror -CC.C gcc -Wall -Werror - myProg b.o ao c.o (e) gcc -Wall -Werror -ca.c gcc -Wall -Werror -o my Prog b.o a. c.o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
