[Expat-discuss] Patch to remove GCC-specific dependency generation

Sam TH sam@uchicago.edu
Sat, 3 Feb 2001 02:03:01 -0600


---------------------- multipart/signed attachment
The following patch removed GCC-specific dependency generation from
the lib/Makefile.in.  This will allow expat to be compiled with
non-gcc compilers. =20

Index: lib/Makefile.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/expat/expat/lib/Makefile.in,v
retrieving revision 1.10
diff -u -r1.10 Makefile.in
--- lib/Makefile.in	2001/01/24 19:41:12	1.10
+++ lib/Makefile.in	2001/02/03 08:00:36
@@ -107,24 +107,10 @@
 .PHONY: all clean distclean maintainer-clean
=20
 .c.o:
-	@echo '$(COMPILE) -c $<'; \
-	$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
-	@-cp .deps/$(*F).pp .deps/$(*F).P; \
-	tr ' ' '\012' < .deps/$(*F).pp \
-	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
-	    >> .deps/$(*F).P; \
-	rm .deps/$(*F).pp
+	$(COMPILE) -c $<
=20
 .c.lo:
-	@echo '$(LTCOMPILE) -c $<'; \
-	test -d .deps || mkdir .deps ; \
-	$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
-	@-sed -e 's/^\([^:]*\)\.o[ 	]*:/\1.lo \1.o :/' \
-	  < .deps/$(*F).pp > .deps/$(*F).P; \
-	tr ' ' '\012' < .deps/$(*F).pp \
-	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
-	    >> .deps/$(*F).P; \
-	rm -f .deps/$(*F).pp
+	$(LTCOMPILE) -c $<
=20
 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
 	cd $(top_builddir) \

          =20
	sam th		    =20
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key: =20
	http://www.abisource.com/~sam/key

---------------------- multipart/signed attachment
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20010203/3aeb87a9/attachment.bin

---------------------- multipart/signed attachment--