Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5841601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:54:38+00:00 2026-05-22T11:54:38+00:00

Taking the GNU make application as an example, when I create a makefile it

  • 0

Taking the GNU make application as an example, when I create a makefile it is likened to a Visual Studio project file in that it contains the list of files and other items needed to compile an application. The makefile contains the path to the compiler as well as the path to all the files that could possibly be used in the compiling operation. The MAKE application reads the makefile and combines the sources into 1 file which the compiler then reads and converts into the relevant assembly/machine code.

The #include directive is a directive that tells the make file to:
“include the contents of this file into this point of the larger file that you’re making to feed to the compiler then resume with the current file”.

The MAKE application also tells the compiler where to “emit” the result of the compile operation once the compiling is completed. In this regard a Visual Studio .csproj file is technically a XML based makefile for a Microsoft specific MAKE application.

Is this understanding of makefiles correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:54:39+00:00Added an answer on May 22, 2026 at 11:54 am

    Approximately, yes. However there are numerous details to cavil at.

    Taking the GNU make application as an example, when I create a makefile it is likened to a Visual Studio project file in that it contains the list of files and other items needed to compile an application.

    That is reasonably close to accurate.

    The makefile contains the path to the compiler as well as the path to all the files that could possibly be used in the compiling operation.

    The makefile typically does not contain the path to the compiler, though it could. It would contain a list of the files that might be used in the compilation.

    The MAKE application reads the makefile and combines the sources into 1 file which the compiler then reads and converts into the relevant assembly/machine code.

    This is not very accurate. The details vary, but the aggregation is not done by MAKE, but by the compilers that MAKE invokes. MAKE can be used for other tasks than simple source to machine code translation.

    The #include directive is a directive that tells the make file to: “include the contents of this file into this point of the larger file that you’re making to feed to the compiler then resume with the current file”.

    GNU Make (and POSIX Make) supports an include directive to incorporate other fragments of a makefile. The C and C++ compilers recognize the #include directive – and the makefile often needs to be briefed on which headers (included by the #include directive) are needed to compile the program. However, #include is a simple comment in a makefile.

    The MAKE application also tells the compiler where to “emit” the result of the compile operation once the compiling is completed.

    The makefile contains the information about where the generated code should be placed, and the compiler is told if it needs to know.

    In this regard a Visual Studio .csproj file is technically a XML based makefile for a Microsoft specific MAKE application.

    That is a reasonable approximation to the description.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Taking an example that is provided on the Fluent nHibernate website, I need to
Taking into account that some Windows Installer products from independent vendors (for example IstallShield)
Taking over some code from my predecessor and I found a query that uses
Taking this article on classes and structs as an example: http://msdn.microsoft.com/en-us/library/ms173109.aspx namespace ProgrammingGuide {
Taking the jQuery framework for example, if you run code like this: $(document).ready(function init()
Taking Ryan Bates' asciicast as an example: http://asciicasts.com/episodes/163-self-referential-association He ends with two associations of
Taking the W3C vehicle XSD as an example: <schema xmlns=http://www.w3.org/2001/XMLSchema targetNamespace=http://cars.example.com/schema xmlns:target=http://cars.example.com/schema> <complexType name=Vehicle
Taking the following snippet as an example: struct Foo { typedef int type; };
Taking Fabien Potencier's example : class User { function __construct($storage) { $this->storage = $storage;
Taking this simplifed example of my XML: <?xml version=1.0?> <message xmlns=http://www.mydomain.com/MyDataFeed xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://www.mydomain.com/MyDataFeed https://secure.mydomain/MyDataFeed/myDataFeed.xsd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.