define create_dynlib
$(if $(wildcard __dyn__.tmp),@$(RM) __dyn__.tmp,)
$(foreach dir,$(DYNDIRLIST),$(dyn_objects))
$(DY) ...
endef
---
It will not work. David already made such tests.
The problem is in OS2 GNU make port. It has limited total size of
resolved command for given action and when this limit is exceed
then it corrupts internal memory and usually GPFs.
See the note about using wordlist in config/common/watcom.mk.
GNU make evaluates all functions creating full list of commands
to execute before it starts to execute the 1-st command. It doesn't
mater how you create such list (which functions you will use) but
important is only total length. As long as it's not fixed in OS2
GNU make port then you cannot create such long command but I do
not know if it's a know bug reported to GNU make authors. Maybe
we should ask about it.
What may work is to generate a small .bat file with one 'for' line
for each DYNDIRLIST item, and calling this .bat to generate generate
the .tmp file.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour