What are $@ and $< in a Makefile?

makefile

Solution

$@  The file name of the target. 

$<  The name of the first dependency. 

For more details: `Makefile symbol reference`

Problem

For example in ``` $(CC) $(CFLAGS) -c -o $@ $< ``` what do they mean?

Original source

Related problems