> Now, that's easy enough for 0.9.6, in 0.9.7 we're going through the > domd script, (which is basically what $(MAKEDEPEND) is defined to), > which might call gcc, basically ending up trying the following: > > gcc -D OPENSSL_DOING_MAKEDEPEND -M -- -Iinclude -- foo.c
Hmmm... I see. I neglected the whole domd thing. :-( Some options, then. We can parse the parameters in the script and remove the double dashes for gcc. Or we can export the important variables ($(CFLAG) $(INCLUDE) $(DEPFLAG) $(PROGS) $(LIBSRC) more? less?) into the environment; then domd script can read those and compose the proper command lines for gcc or makedepend. One way to do it (and there could be better ways): use an intermediate makefile: $(MAKE) -f $(TOP)/util/Makefile.dep CFLAG=$(CFLAG)... Makefile.dep will then invoke domd. Variables passed on make command line are exported to the environment; tested on FreeBSD make, Solaris native make, gnu make, clearmake; let's hope others are the same in this sense. Cheers, Zoran ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]