Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
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