What is the $@ symbol for in a makefile?

  • Thread starter jf22901
  • Start date
  • #1
55
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:
 

Answers and Replies

Related Threads on What is the $@ symbol for in a makefile?

  • Last Post
Replies
3
Views
13K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
4
Views
781
  • Last Post
2
Replies
34
Views
2K
Replies
9
Views
2K
Replies
5
Views
3K
  • Last Post
Replies
3
Views
5K
Replies
12
Views
634
Replies
3
Views
21K
Replies
4
Views
7K
Top