This is the mail archive of the guile@cygnus.com mailing list for the guile project.


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

.deps considered harmfull


Would it be possible to persuade the hardworking guile team to
reconsider the use of auto-generated .deps?

All glory be to the power of gcc and freeware tools, but is there a
need to tie guile to hard to that?

I am porting guile to run in our router (yep, we are going to base our
management system on guile to some extent) and since this currently is
based on the INMOS Transputer (yep, the old archaic and soon to be
extinct CPU), there just is no hope to get a gcc-based cross-compiler
up and running on the time and budget allocated to the project.

And the cross-compiling tools available to us does not understand the
.deps related switches.

I am no big expert on automake, but if we could somehow get something
like the patch below, so that I could remove the feature on the
command line, rather than having to edit (and thus maintain) Makefile.in


=== cd /usr/u/chl/Project/guile-porting/libguile/
=== cvs -d /nmc/Repository diff Makefile.in

Index: Makefile.in
===================================================================
RCS file: /nmc/Repository/tools/guile/guile-core/libguile/Makefile.in,v
retrieving revision 1.1.1.2.2.1
diff -u -r1.1.1.2.2.1 Makefile.in
--- Makefile.in	1998/09/08 10:37:54	1.1.1.2.2.1
+++ Makefile.in	1998/09/08 12:50:38
@@ -542,15 +542,17 @@
 maintainer-clean-depend:
 	-rm -rf .deps
 
+DEPFLAGS=-Wp,-MD,.deps/$(*F).P
+DEPFIX=@-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' <.deps/$(*F).p >.deps/$(*F).P
+
 %.o: %.c
 	@echo '$(COMPILE) -c $<'; \
-	$(COMPILE) -Wp,-MD,.deps/$(*F).P -c $<
+	$(COMPILE) $(DEPFLAGS) -c $<
 
 %.lo: %.c
 	@echo '$(LTCOMPILE) -c $<'; \
-	$(LTCOMPILE) -Wp,-MD,.deps/$(*F).p -c $<
-	@-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
-	  < .deps/$(*F).p > .deps/$(*F).P
+	$(LTCOMPILE) $(DEPFLAGS) -c $<
+	$(DEPFIX)
 	@-rm -f .deps/$(*F).p
 info:
 dvi:



---------------------------+--------------------------------------------------
Christian Lynbech          | Telebit Communications A/S                       
Fax:   +45 8628 8186       | Fabrik 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28  | email: chl@tbit.dk --- URL: http://www.telebit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)