Results 1 to 4 of 4

Thread: Is the "make" command just a compiler

  1. #1
    Join Date
    Sep 2013
    Beans
    21

    Is the "make" command just a compiler


    since it turns source code into objects?

  2. #2
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: Is the "make" command just a compiler

    No. "make" is not a compiler. It calls compilers that build your code.

    It is like you make a file named my_script.sh that calls gcc and compiles code. my_script.sh is not a compiler itself.
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

  3. #3
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,351
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Is the "make" command just a compiler

    make is a program that reads a file called Makefile (where it can find rules and filenames), compares modification times of files (to know if the source code was modified after the last compilation) and runs specified commands (usually the compiler or linker). Projects using multiple source files (that is, anything non-trivial) usually use make to call a compiler and linker. Apart from programming, I sometimes use make in document typesetting.
    Last edited by Impavidus; October 17th, 2013 at 07:04 PM.

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,207
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Is the "make" command just a compiler

    Code:
    man make
    will give you a detailed list of make's capabilities.

    Make is just a small part of a much larger compilation process described here: https://help.ubuntu.com/community/CompilingEasyHowTo
    Last edited by tgalati4; October 17th, 2013 at 03:33 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •