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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:49:25+00:00 2026-05-15T00:49:25+00:00

I recently learned how to use automake, and I’m somewhat annoyed that my compile

  • 0

I recently learned how to use automake, and I’m somewhat annoyed that my compile commands went from a bunch of:

g++ -O2 -Wall -c fileName.cpp

To a bunch of:

depbase=`echo src/Unit.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I. -I./src     -g -O2 -MT src/Unit.o -MD -MP -MF $depbase.Tpo -c -o src/Unit.o src/Unit.cpp &&\
    mv -f $depbase.Tpo $depbase.Po

Is there any way to clean this up? I can usually easily pick out warning messages, but now the wall of text to read though is 3x bigger and much weirder.

I know what my flags are, so making it just says “Compiling xxx.cpp” for each file would be perfect.

  • 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-15T00:49:26+00:00Added an answer on May 15, 2026 at 12:49 am

    As of automake 1.11, you can greatly clean up the output using the silent-rules option. For example:

    $ # First, make without silent rules
    $ make
    make  all-am
    gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo.c
    mv -f .deps/foo.Tpo .deps/foo.Po
    /bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -O2   -o foo foo.o
    libtool: link: gcc -g -O2 -o foo foo.o
    gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT bar.o -MD -MP -MF .deps/bar.Tpo -c -o bar.o bar.c
    mv -f .deps/bar.Tpo .deps/bar.Po
    /bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -O2   -o bar bar.o
    libtool: link: gcc -g -O2 -o bar bar.o
    gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT baz.o -MD -MP -MF .deps/baz.Tpo -c -o baz.o baz.c
    mv -f .deps/baz.Tpo .deps/baz.Po
    /bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -O2   -o baz baz.o
    libtool: link: gcc -g -O2 -o baz baz.o
    gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT qux.o -MD -MP -MF .deps/qux.Tpo -c -o qux.o qux.c
    mv -f .deps/qux.Tpo .deps/qux.Po
    /bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -O2   -o qux qux.o
    libtool: link: gcc -g -O2 -o qux qux.o
    $ # Now, use the silent rules
    $ ./configure --enable-silent-rules > /dev/null
    $ make clean all
     rm -f foo bar baz qux
    rm -rf .libs _libs
    rm -f *.o
    rm -f *.lo
    make  all-am
      CC       foo.o
      CCLD     foo
      CC       bar.o
      CCLD     bar
      CC       baz.o
      CCLD     baz
      CC       qux.o
      CCLD     qux
    

    All that is needed is to add “silent-rules” to the invocation
    of AM_INIT_AUTOMAKE in configure.ac, and add the option
    –enable-silent-rules when you invoke configure. (There
    was much debate about requiring the option to be added
    at configure time when this feature was added, and there
    is an easy workaround to make it unnecessary.) Note that
    with silent-rules enabled, you can still get verbose
    output by running ‘make V=1’

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

Sidebar

Related Questions

UPDATE: I recently learned from this question that in the entire discussion below, I
So I learned recently that if you use jquery $.post to post back to
I have recently learned that you can use a neat switch statement with fallthrough
I recently learned that JIT compilers are used to compile platform independant code to
I recently learned that table valued functions are not allowed with Entity Framework 4.1.
I recently learned that all stl containers have swap function: i.e. c1.swap(c2); will lead
I recently learned about CTE's in SQL Server and am attempting to use it
I have learned recently that Export in Mathematica uses by default the Printout screen
I recently learned that Embedded Resource means that assets are saved to an external
I recently learned that overlong encodings cause a security risk when not properly validated.

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.