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

  • Home
  • SEARCH
  • 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 64311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:46:12+00:00 2026-05-10T18:46:12+00:00

I have a very large C project with many separate C files and headers

  • 0

I have a very large C project with many separate C files and headers and many dozens of contributors. Many contributors do not have a strong knowledge of makefiles and dependencies, resulting in the not uncommon problem where you almost always have to ‘make clean’ before you can trust ‘make’ to have produced correct output.

If make took minutes, this wouldn’t be an issue, but it’s nearly 2 hours on a fast machine now, and people are starting to check in code that works when they make, but they don’t clean first and their code ultimately breaks the build. Don’t ask why these aren’t caught by the build manager before a new baseline is cut…

Yes, we shouldn’t have let it go this far.

Yes, we’re educating our developers.

As usual, we don’t have time to stop everything and fix it by hand.

I’m thinking there are tools along these lines:

  • Are there automated tools to help build correct dependency information for an existing project from the C and H files?
  • Are there automated tools to describe dependency information according to the makefiles?
  • Is there a holy grail of a tool to describe the differences between the above two dependency trees?

But what else can/should be done to resolve this issue?

Thanks in advance…

-Adam

  • 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. 2026-05-10T18:46:12+00:00Added an answer on May 10, 2026 at 6:46 pm

    It might be easiest to switch from Make to a tool which automatically detects dependencies. For example, SCons doesn’t make you list dependencies but instead automatically parses the files being compiled and looks for includes. You simply specify which files should be compiled and which files go into which executables. Switching build systems will be easier for the fact that your developers aren’t really Make experts.

    Another alternative if you stick with Make is to use the gcc -M option to automatically detect dependencies. The answer to the Automatically discovering C dependencies question has an example of how to have your makefiles automatically discover dependencies so that you don’t need to specify them by hand.

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

Sidebar

Ask A Question

Stats

  • Questions 204k
  • Answers 204k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think what you are getting at is that C#… May 12, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer Define css classes for the even and odd rows and… May 12, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer The aspnetdb.mdf comes from the default connection strings collection, remove… May 12, 2026 at 8:45 pm

Related Questions

In a few MVC projects I've been working on, it has become apparent that
In my C project I have quite a large utils.c file. It is really
I work in the technical group at a large Architecture firm. While there are
I'm writing a class-library (IE BHO) in C# and currently wrangling with the large

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.