Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

What is the $@ symbol for in a makefile?

  1. Aug 28, 2011 #1

    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 (Text):

                    ifort $(LOADFLAGS) -o $@ $(OBJECTS) $(LIBRARIES)

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

    Many thanks. :smile:
  2. jcsd
  3. Aug 28, 2011 #2

    Filip Larsen

    User Avatar
    Gold Member

  4. Sep 1, 2011 #3
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook