silent.am 1.66 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Silent compilation w/ Automake 1.9 or 1.10
# ----------------------------------------------------------

# Automake 1.9.6 is not clever enough to override suffix rules within if
# if SOFIA_COMPILE_SILENT

SOFIA_SILENT=@

LIBTOOL_FLAGS = --silent

# From Automake 1.9.6 - 
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(LIBTOOL_FLAGS) \
	$(CC) $(DEFS) \
	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
	$(AM_CFLAGS) $(CFLAGS)

17
LINK = 	${SOFIA_SILENT}test "${SOFIA_SILENT}" != @ || echo '	 LINK $@'; \
18 19 20 21 22 23
	$(LIBTOOL) --tag=CC --mode=link $(LIBTOOL_FLAGS) \
	$(CCLD) $(AM_CFLAGS) $(CFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@

# Rules from depend2.am (GENERIC = TRUE, SUBDIROBJ = FALSE, %FASTDEP% = am_fastdepCC) silenced. 
.c.o:
24
	@test "${SOFIA_SILENT}" != @ || echo '	 COMPILE $@'
25 26 27 28 29 30
if am__fastdepCC
	${SOFIA_SILENT}if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
else
if AMDEP
	${SOFIA_SILENT}source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
31 32 33
	DEPDIR="$(DEPDIR)" $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(COMPILE) -c -o $@ $<
else
34 35
	${SOFIA_SILENT}$(COMPILE) -c -o $@ $<
endif
36
endif
37 38

.c.lo:
39
	@test "${SOFIA_SILENT}" != @ || echo '	 LTCOMPILE $@'
40 41 42 43 44 45
if am__fastdepCC
	${SOFIA_SILENT}if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
else
if AMDEP
	${SOFIA_SILENT}source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
46 47 48
	DEPDIR="$(DEPDIR)" $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(LTCOMPILE) -c -o $@ $<
else
49 50
	${SOFIA_SILENT}$(LTCOMPILE) -c -o $@ $<
endif
51
endif
52 53

# endif