Ethereal-dev: [Ethereal-dev] Comments on Makefiles

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: David Frascone <dave@xxxxxxxxxxxx>
Date: Mon, 26 Feb 2001 12:21:04 -0600
The current makefiles break badly under solaris:

%.o: %.c
        @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

%.lo: %.c
        @echo '$(LTCOMPILE) -c $<'; \
        $(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
info-am:


Comments:

	First, the fact that it's echoing something different than the
	actual command line makes problems VERY difficult to diagnose.

	I'm not sure why we're using autoconf, if gcc specific flags are
	being manually put into the makefile (-Wp,-MD,.deps/$(*F).pp).

For now, to build under Solaris, I'm just manually hacking the makefiles,
but this probably needs to be fixed before the next release.


Just my $.02 worth,


--Dave