Question: ( 1 4 points ) There are three source files sender . c , receiver.c , and commlib.c . The files sender . c while

(14 points)
There are three source files sender.c, receiver.c, and commlib.c. The files sender.c while
and commlib.c are compiled and linked together to build the executable file send to the exe-
cutable file receiver. Write a makefile so a user can just type make to build the sender
and the receiver executable files.
C=gCC
CFLAGS=-g
I ALAGS =-i
all: Senders reciever
Sender: Sender. 0 commlib. 0
${cc}-O Sender Sender.o commlib.o
reciever: Heciever. o commib. o
${cc}-0 recievon reciever. Commitio
clean: rm racievor, Sender, reciever.o, Scinder. o, commlto o
makederndS{ I FLAGSS Senden.o commit. O
makedepand & IfLAGS Gecieus. 0 commbib. 0
Assume that after building the sender and the receiver executable files, we modify the
file sender.c. Then we type make again. What will you see on the screen (i.e. the compil-
ing/linking commands executed)?
If modified and rein again the 'make' command
only the Scnder.c, commbibic well compiled
and linked toguther., gcc-c Sender. c
on the squeen
to.mmlib.s.
11
gec -o Sender Sendor.o Commlib.o
 (14 points) There are three source files sender.c, receiver.c, and commlib.c.

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!