Didier Gautheron (firstname.lastname@example.org)
Sat, 09 Jan 1999 18:03:49 +0000
Alexander Bergolth wrote:
> I have just changed the Makefiles to allow compiling of the htdig-sources
> in seperate build-directories.
> You should now be able to configure and compile different
> htdig-versions from the same sources, e.g. my debugging version resides in
> and I configure it from that directory using
> Maybe there are still some dependencies that are not updated correctly so
> if you have any troubles compiling, you know who is to blame... :)
there's stuff in gnu make to auto build dependencies e.g.:
OBJS = Document.o HTML.o Images.o \
Parsable.o Plaintext.o Postscript.o \
Retriever.o SGMLEntities.o Server.o \
URLRef.o main.o ExternalParser.o PDF.o
include $(patsubst %.o,%.d,$(OBJS))
rm -f $*.d
echo -n "$@ " >$@
$(CXX) $(ALL_CXXFLAGS) -M $< >> $@
The .d files will be check, rebuild and 'reincluded' when needed, and
you don't have to care about 'make depend' anymore.
Caveat: it's only gnu make
Warning: there're quirks in the make.info file the :
$(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
| sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
stuff can produce erroneous dependencies if $(CC) failed.
This archive was generated by hypermail 2.0b3 on Sun Jan 10 1999 - 16:36:31 PST