What is the $@ symbol for in a makefile?

  • Thread starter Thread starter jf22901
  • Start date Start date
  • Tags Tags
    Symbol
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 7K views
jf22901
Messages
55
Reaction score
1
Hi.

Can anyone please tell me what purpose $@ serves in the dependency line below? I've tried looking online, and in the make and ifort documentation, but can't find anything. :confused:

Code:
$(EXECUTABLE) : $(OBJECTS)
                ifort $(LOADFLAGS) -o $@ $(OBJECTS) $(LIBRARIES)

where:

OBJECTS = list of object files
LOADFLAGS = -O3 -align dcommons
LIBRARIES = -L$(LIBRARY) -lfft -lnetcdf

Many thanks. :smile:
 
Physics news on Phys.org