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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to