Re: ${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
On Wednesday 2014-11-12 20:15, Nick Bowler wrote: >On 2014-11-12 16:58 +0100, Jan Engelhardt wrote: >> Using automake-1.13.4, when using the following Makefile.am fragment, >> .k.${OBJEXT}: >> gcc -x c -c $< -o $@ >> I observe that bar.o is not built and not linked into foo. > >Indeed, the

Re: ${OBJEXT} in implicit rule

2014-11-12 Thread Nick Bowler
On 2014-11-12 16:58 +0100, Jan Engelhardt wrote: > Using automake-1.13.4, when using the following Makefile.am fragment, > > ---8<--- > bin_PROGRAMS = foo > foo_SOURCES = foo.c bar.k > .k.${OBJEXT}: > gcc -x c -c $< -o $@ > --->8--- > > I observe that bar.o is not built and not linked int

${OBJEXT} in implicit rule

2014-11-12 Thread Jan Engelhardt
Using automake-1.13.4, when using the following Makefile.am fragment, ---8<--- bin_PROGRAMS = foo foo_SOURCES = foo.c bar.k .k.${OBJEXT}: gcc -x c -c $< -o $@ --->8--- I observe that bar.o is not built and not linked into foo. ---8<--- > make V=0 CC foo.o CCLD foo /usr/lib