This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch bfd/doc/Makefile.am and Interix 64bit target


On Sat, Jun 21, 2008 at 06:11:01PM +0200, Jerker Bäck wrote:
> My compiler doesn't like to have options after the source file.
> This patch simply move the source file last in the command.

Applied, along with removing the now redundant chew.o rule.

bfd/doc/
	* Makefile.am (chew.o): Delete rule.
	($(MKDOC)): Move options before C file.
	* Makefile.in: Regenerate.

Index: bfd/doc/Makefile.am
===================================================================
RCS file: /cvs/src/src/bfd/doc/Makefile.am,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile.am
--- bfd/doc/Makefile.am	10 Jul 2008 01:32:22 -0000	1.24
+++ bfd/doc/Makefile.am	24 Aug 2008 03:48:49 -0000
@@ -60,14 +60,10 @@ INCLUDES = -I.. -I$(srcdir)/.. -I$(srcdi
 	-I$(srcdir)/../../intl -I../../intl
 
 $(MKDOC): $(srcdir)/chew.c
-	$(CC_FOR_BUILD) -o chew.$$$$ $(srcdir)/chew.c \
-	  $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) \
-	  $(INCLUDES); \
+	$(CC_FOR_BUILD) -o chew.$$$$ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
+	  $(H_CFLAGS) $(INCLUDES) $(srcdir)/chew.c; \
 	$(SHELL) $(srcdir)/../../move-if-change chew.$$$$ $(MKDOC)
 
-chew.o: chew.c
-	$(CC_FOR_BUILD) -c $(INCLUDES) $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
-
 protos: libbfd.h libcoff.h bfd.h
 
 # We can't replace these rules with an implicit rule, because


-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]