0

In some .mak files I see lines like:

$(CC) $[@ $(CFLAGS) $(OFLAGS) $(DFLAGS)

I know that the $ sign means the value of the variable... But what is $[@ (where there is no variable)?

Other examples: $[* , $^@

And $@ $< in this answer, in the lines:

$(ODIR)/%.o: $(SDIR)/%.cpp 
    $(CC) -c $(INC) -o $@ $< $(CFLAGS)

Now I know that the last two lines mean to create the .o files in ODIR directory and the .c files in SDIR directory. But what's the essential meaning of $@ $<?

I couldn't find anything except these apache-related results as examples, with no explanation.

Community
  • 1
  • 1
Alaa M.
  • 4,961
  • 10
  • 54
  • 95

1 Answers1

0

These are automatic variables as described here : GNU make : Automatic variables

Also see this thread : What do the makefile symbols $@ and $< mean?

Community
  • 1
  • 1
Tim
  • 1,853
  • 2
  • 24
  • 36