SubDir TOP haiku-on-genode sys-libroot ;


SEARCH_SOURCE += $(SUBDIR)/interim ;  # stubbed-libroot_stubs.c


# Make the 'libroot' code part of haiku.lib.so (instead of a
# separate libroot.so like in upstream)
#
if $(LayerLevel) >= 5
{
	SolibFromObjects haiku.lib.so :
		find_directory.o #from interim/ instead of from os/...
		stubbed-libroot_stubs.o
		;
	Library haiku.lib.a :
		find_directory.cpp
		stubbed-libroot_stubs.c
		;
	
	#xx Force recompilation in case hog_TEST_LEVEL changed (a new value of that constant does not by itself trigger a recompile of files that use it)...
	Always [ FGristFiles stubbed-libroot_stubs.o ] ;
}


#xxxx check value ?
#xxxx check where to define this instead of this jamfile ?
ObjectDefines find_directory.cpp :
	HAIKU_BUILD_GENERATED_DIRECTORY=""
	;



SubInclude TOP haiku-on-genode sys-libroot librootbuild-variant ;
SubInclude TOP haiku-on-genode sys-libroot os ;

