+ifneq ($(HB_HAS_PCRE),)
+ ifneq ($(HB_HAS_PCRE_LOCAL),)
+ HB_DYN_LIBS += hbpcre
+ endif
+endif
+ifneq ($(HB_HAS_ZLIB_LOCAL),)
+ HB_DYN_LIBS += hbzlib
+endif
+
# Added only for hbpp
-include $(TOP)$(ROOT)config/$(HB_PLATFORM)/libs.mk
include $(TOP)$(ROOT)config/$(HB_PLATFORM)/$(HB_COMPILER).mk
Looks perfect to me.
The only point I'm out of ideas is to how add option to
disable this behavior. It also needs to be communicated
to hbmk2.
Okay so just to document it, above approach has a flaw,
and that was the reason I originally mentioned the need
to rearrange dirs. The flaw is that it will fail to
create harbour dynlib when doing a partial build inside
/source, unless we've previously done a build of hbpcre
/ hbzlib in one way or another, in a separate pass.
Probably we can live with it, but it may be important
to note anyway.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour