A cube.c is stored in the folder cube. makefile is as follows
LDFLAGS=-lglut -lGLU
all: cube
Could anyone help me solve the following questions?
-
cubemeans cube.c? why doescubehave no extension.c? -
There is no command after the line
all: cube, andLDFLAGESis not used. Why can it be written in this way?
It’s the name of the resulting executable.
LDFLAGSis used in implicit rulesSee implicit rules.