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,705
    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.

  3. #3
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    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
  •