|
From: | Ray Foulkes |
Subject: | Baffled by cc -o in Make manual |
Date: | Tue, 1 Aug 2017 18:32:57 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hello, like many reports I suppose I have this totally wrong but
the very first example on page 4 of the make manual at https://www.gnu.org/software/make/manual/make.pdf reads: edit :
main.o kbd.o command.o display.o \
insert.o
search.o files.o utils.o
cc
-o edit main.o kbd.o command.o display.o \
insert.o search.o files.o utils.o
I am totally baffled as to what cc -o is doing there. Surely it should be ld?? and then the -o is for "output" i.e. create "edit" as an executable. On the other hand it continues on through the other examples of
using variables in subsequent pages so I am beginning to doubt
myself. I cannot understand how make knows to call ld if it is not
explicit somewhere in the file. Please ignore if I am just being stupid... If so, boy, have you
got me baffled - and I have only got to page 4!
Regards, Ray Foulkes
|
[Prev in Thread] | Current Thread | [Next in Thread] |