automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC $sourcebasename-$sourcebasename.o displayed during silent rules b


From: Stefano Lattarini
Subject: Re: CC $sourcebasename-$sourcebasename.o displayed during silent rules build
Date: Wed, 09 May 2012 19:09:04 +0200

On 05/09/2012 06:50 PM, Adam Mercer wrote:
> Hi
> 
> Next, hopefully not so stupid, question; my Makefile.am is now
> 
> AM_CFLAGS = $(LALSUPPORT_CFLAGS)
> LDADD = $(LALSUPPORT_LIBS) $(top_builddir)/src/liblalframe.la
> 
> if PTHREAD
> PTHREADPRGS = \
>       TestLowLatencyData1 \
>       TestLowLatencyData2 \
>       TestLowLatencyData3
> endif
> 
> if LALSUPPORT
> check_PROGRAMS = \
>       AggregationTest \
>       FrameCacheTest \
>       FrameDataTest \
>       FrameStreamTest \
>       MakeFrames \
>       Read40mData \
>       ReadGEOData \
>       ReadLHOData \
>       $(PTHREADPRGS)
> TESTS = \
>       FrameCacheTest.sh \
>       FrameStreamTest \
>       $(PTHREADPRGS)
> endif
> 
> if PTHREAD
> # set appropriate pthread flags
> TestLowLatencyData1_LDADD = $(PTHREAD_LIBS) $(LDADD)
> TestLowLatencyData1_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS)
> TestLowLatencyData2_LDADD = $(PTHREAD_LIBS) $(LDADD)
> TestLowLatencyData2_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS)
> TestLowLatencyData3_LDADD = $(PTHREAD_LIBS) $(LDADD)
> TestLowLatencyData3_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS)
> endif
> 
> then when building with silent rules, the codes that are linked
> against libpthread are displayed as follows:
> 
>   CC       TestLowLatencyData1-TestLowLatencyData1.o
>   CCLD     TestLowLatencyData1
>   CC       TestLowLatencyData2-TestLowLatencyData2.o
>   CCLD     TestLowLatencyData2
>   CC       TestLowLatencyData3-TestLowLatencyData3.o
>   CCLD     TestLowLatencyData3
>
This is expected, since the use of per-target compilation flags causes
the generated object files to be renamed; see:
<http://www.gnu.org/software/automake/manual/automake.html#Renamed-Objects>

> Whereas the others are displayed as:
> 
>   CC       AggregationTest.o
>   CCLD     AggregationTest
> 
> Why are these being displayed differently? And is there a way I can
> get them to be display like the other test codes?
>
You could maybe play with _SHORTNAMES (see the link above).

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]