Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 845
  • Last Modified:

Makefile Flags and switched

What does ld nm and gcc -Wall options do in a Makefile
0
amit_at_expertsexchange
Asked:
amit_at_expertsexchange
1 Solution
 
Jeffrey CoachmanCommented:
amit_at_expertsexchange,

You question is posed in very vague terms.

Can you take the time to fully state your question please?

JeffCoachman
0
 
Infinity08Commented:
They are not options. They are commands :

        nm : lists the symbols in an object file
        ld : is the linker - it links object files together (into an executable eg.)
        gcc : is the compiler - it compiles object files from source code

For more info, you can always do a man on it, for example :

        man nm
0
 
Duncan RoeSoftware DeveloperCommented:
nm prints symbols in an executable, library or object  file
ld loads (links) object files to produce an executable or shared object
gcc is the GNU C compiler (gcc nowadays stands for Gnu Compiler Collection - it is a frontend for C++, FORTRAN and many others). The -Wall options instructs it to issue warnings for a number of common possible mistakes.
A Makefile can include these commands, but it can include *any* commands. These commands are in no way specific to make.
0
 
amit_at_expertsexchangeAuthor Commented:
Thanks for the help
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now