1SubDir HAIKU_TOP src system glue arch x86_64 ;
2
3local architectureObject ;
4for architectureObject in [ MultiArchSubDirSetup x86_64 ] {
5	on $(architectureObject) {
6		local architecture = $(TARGET_PACKAGING_ARCH) ;
7
8		UsePrivateSystemHeaders ;
9
10		local sources =
11			crti.S
12			crtn.S
13			;
14		MergeObject <$(architecture)>glue_arch_$(TARGET_ARCH).o : $(sources) ;
15
16		if $(HAIKU_BUILD_TYPE) = bootstrap {
17			# build a version for stage0 of the bootstrap process
18			BootstrapStage0PlatformObjects [ FGristFiles $(sources) ] : true ;
19		}
20	}
21}
22