1SubDir HAIKU_TOP src system runtime_loader arch x86 ;
2
3local architectureObject ;
4for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
5	on $(architectureObject) {
6		local architecture = $(TARGET_PACKAGING_ARCH) ;
7
8		UsePrivateHeaders runtime_loader ;
9		UsePrivateSystemHeaders ;
10
11		SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) $(DOTDOT) ] ;
12
13		DEFINES += _LOADER_MODE ;
14
15		StaticLibrary <$(architecture)>libruntime_loader_$(TARGET_ARCH).a :
16			arch_relocate.cpp
17			:
18			<src!system!libroot!os!arch!$(TARGET_ARCH)!$(architecture)>atomic.o
19			<src!system!libroot!os!arch!$(TARGET_ARCH)!$(architecture)>thread.o
20
21			[ MultiArchIfPrimary
22				<src!system!libroot!posix!string!arch!$(TARGET_ARCH)!$(architecture)>memcpy.o
23				<src!system!libroot!posix!string!arch!$(TARGET_ARCH)!$(architecture)>memset.o
24				:
25				<src!system!libroot!posix!string!arch!$(TARGET_ARCH)!$(architecture)>arch_string.o
26				: x86_64 ]
27			;
28	}
29}
30