⛏️ index : haiku.git

SubDir HAIKU_TOP src system glue arch x86 ;

local architectureObject ;
for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
	on $(architectureObject) {
		local architecture = $(TARGET_PACKAGING_ARCH) ;

		UsePrivateSystemHeaders ;

		local sources =
			crti.S
			crtn.S
			;
		MergeObject <$(architecture)>glue_arch_$(TARGET_ARCH).o : $(sources) ;

		if $(HAIKU_BUILD_TYPE) = bootstrap {
			# build a version for stage0 of the bootstrap process
			BootstrapStage0PlatformObjects [ FGristFiles $(sources) ] : true ;
		}
	}
}