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 9173437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:35:24+00:00 2026-06-17T16:35:24+00:00

Short version of the question: What are objects.mk , sources.mk , makefile , subdir.mk

  • 0

Short version of the question: What are objects.mk, sources.mk, makefile, subdir.mk, *.o and *.d files generated by Eclipse?


Long Version of the question:

  1. In my home directory I have the workspace directory. Whenever I create a project and call it ProjectName a new directory (also called ProjectName) is created by Eclipse in the workspace folder.
  2. In my project I create different classes, every class is associated with 2 files (source file ClassName.cpp and header file ClassName.h). These files are put into the workspace/ProjectName/src folder.
  3. Now I Build my project in Eclipse and in the workspace/ProjectName a new folder appears. It is called Debug.
  4. In this folder there is only one file whose functionality I understand: ProjectName. It is the executable. If I type its name in the command line, my program will be executed.
  5. Another 3 files are unknown to me: objects.mk, sources.mk, makefile.
  6. Moreover, in Debug folder there is src directory. It contains subdir.mk file whose meaning is unknown to me as well as ClassName.o and ClassName.d files (if I have N classes there will be N pairs of the *.o and *.d files.)

Can anybody, please, explain the meaning and purpose of these files?

  • 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-06-17T16:35:25+00:00Added an answer on June 17, 2026 at 4:35 pm

    objects.mk, sources.mk, makefile and subdir.mk are makefiles generated by Eclipse according to your project type (executable, library, shared library). For their contents and how these work refer to the make command documenation of your toolchain. In short these are responsible to call the compiler and linker.

    ClassName.o is the object file generated by the compiler, all of them will be linked together to an executable or stored in a library (depending on project type).

    ClassName.d is a so called dependency reference file that is generated by the compiler (on demand) and included into the makefiles, that it’s possible to track changes in header files, and recompile the concerned source files if neccessary.

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

Sidebar

Related Questions

I have a short version of the question: I start a thread like that:
Short version of question: see title Long version of question: I've used jquery's show()
I just have a short question about switching the color of sifr objects on
Question in short: How tot do this in MVC.NET? Question in long version: Im
Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers,
SHORT VERSION OF QUESTION: So basically my question is: How can I set the
The short version of the question - why can't I do this? I'm restricted
The short version of the question: I do: x = y . Then I
This is basically a rails 3 version of this question . Short of parsing
Short version: Can I grant access to external databases to a role? Long version:

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.