[reSIProcate] Make system problem

Derek MacDonald derek at counterpath.com
Thu Oct 4 16:06:14 CDT 2007


I hit a fairly heinous makefile issue recently.  If you have CXXFLAGS or
CFLAGS set as an environment variable, the cxxflags in the obj.debug...
directory is rebuilt every compile, which causes a complete rebuild of all
files.

The issue is most likely in makefile.post:

ifeq ($(CXXFLAGS),$(shell test -f $(OBJ)/cxxflags && cat $(OBJ)/cxxflags))
else
.PHONY: $(OBJ)/cxxflags
endif

I don't speak make so I don't know how to fix it...is $CXXFLAGS colliding
with the bash environment variable?

Also, the repro executable always rebuilds.  There doesn't seem to be
dependency generation for TARGET_BINARY.  Does it just need the same rule
for dependency generation that TESTPROGRAM has in  Makefile.post?

-Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20071004/486933db/attachment.htm>


More information about the resiprocate-devel mailing list