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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:59:24+00:00 2026-05-26T23:59:24+00:00

I have a project that I want to build using automake. The project consists

  • 0

I have a project that I want to build using automake. The project consists of different components or modules, and there are inter module dependencies which require the project to be built in a specific order.

For example:

project dir/
  module1 (core C shared lib)
  module2 (C++ shared lib wrapper around module 1)
  module3 (C++ application with dependency on module2)
  module4 (C library with dependency on module1)
  module5 (C application with dependency on module4)

I am relatively new to automake, but I (just about) know how to use it to successfully build a single project.

I would like to have a ‘master’ project file (if that’s possible), which specifies the build order of the projects modules, runs unit tests and fails the entire build process if either:

  • One of the modules fails to build
  • One of the modules fails a unit test

How would I go about writing such a ‘master project’ file (or invoking any other mechanism) to build projects that have a lot of inter-modular dependencies?

  • 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-26T23:59:24+00:00Added an answer on May 26, 2026 at 11:59 pm

    If you’re using autotools, then you might as well use automake. The top level Makefile.am can provide a list of subdirectories that are descended in order, e.g:

    SUBDIRS = module1 module2 module3 module4 module5
    

    The subdirectory Makefile.am can add targets for tests, invoked with ‘make check’, which will force the build if necessary:

    check_PROGRAMS = t_module1
    
    t_module1_SOURCES = t_module1.c
    t_module1_LDADD = ./libmodule1.la
    

    There’s a lot to learn, and best current practice can be difficult to determine, but if you’re using autotools, you’ll be used to this situation.

    EDIT:

    info automake provides the reference documentation – but it makes a poor tutorial. One of the best guides I’ve come across can be found here.

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

Sidebar

Related Questions

I have a website project that I want to build using CruiseControl.net. On one
We have a python project that we want to start testing using buildbot. Its
I have a maven project that I want to build without version. Now, when
i have a problem with my project. I want to build application using air
I have a project that I want to push to a Mercurial repository on
I have a Inno Setup project that I want to check if the application
I have a project that requires some configuration files. I want to keep the
Hey so I have been working on a project that I want to be
I happen to have an ASP.NET 2.0 project that I want to apply a
HI, I want to have set configuration settings for a unit test project that

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.