Question: ( 1 4 points ) There are three source files sender . c , receiver.c , and commlib.c . The files sender . c while
points
There are three source files senderc receiver.c and commlib.c The files senderc 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.
CFLAGS
I ALAGS
all: Senders reciever
Sender: Sender. commlib.
$ Sender Sender. commlib.
reciever: Heciever. o commib. o
$ recievon reciever. Commitio
clean: rm racievor, Sender, reciever.o Scinder. o commlto o
makederndS I FLAGSS Senden.o commit. O
makedepand & IfLAGS Gecieus. commbib.
Assume that after building the sender and the receiver executable files, we modify the
file senderc Then we type make again. What will you see on the screen ie the compil
inglinking commands executed
If modified and rein again the 'make' command
only the Scnder.c commbibic well compiled
and linked toguther., Sender.
on the squeen
tommlib.s
gec o Sender Sendor.o Commlib.o
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
