From c3efdb3ea96b68d407223d1d5e920ab0728514d6 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 26 Jul 2002 12:51:02 +0000 Subject: 2002-07-26 Ralf Corsepius * automake/compile.am: Use .$(OBJEXT) instead of .o. --- cpukit/automake/compile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpukit/automake') diff --git a/cpukit/automake/compile.am b/cpukit/automake/compile.am index c132e49d55..33f37ca4bd 100644 --- a/cpukit/automake/compile.am +++ b/cpukit/automake/compile.am @@ -77,14 +77,14 @@ CCLD = $(CC) CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -${ARCH}/%.o: %.c +${ARCH}/%.$(OBJEXT): %.c ${COMPILE} -o $@ -c $< -${ARCH}/%.o: %.S +${ARCH}/%.$(OBJEXT): %.S ${CCASCOMPILE} -o $@ -c $< -# Make foo.rel from foo.o -${ARCH}/%.rel: ${ARCH}/%.o +# Make foo.rel from foo.$(OBJEXT) +${ARCH}/%.rel: ${ARCH}/%.$(OBJEXT) ${make-rel} # Dependency files for use by gmake @@ -105,7 +105,7 @@ CLOBBER_DEPEND=$(DEPEND) ## FIXME: The approach below is known to be conceptionally broken. depend-am: $(C_FILES) $(CC_FILES) $(S_FILES) ## Use gcc -M to generate dependencies -## Replace foo.o with $(ARCH)/foo.o +## Replace foo.$(OBJEXT) with $(ARCH)/foo.$(OBJEXT) ## Replace $(ARCH) value with string $(ARCH) ## so that it will for debug and profile cases $(COMPILE) -M $^ | \ -- cgit v1.2.3