SubDir HAIKU_TOP src system libroot os arch x86 ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] { on $(architectureObject) { local architecture = $(TARGET_PACKAGING_ARCH) ; UsePrivateKernelHeaders ; # TODO: Replace by "UsePrivateHeaders libroot" after resolving the # TODO in time.c! UsePrivateSystemHeaders ; SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ; local compatibilitySources ; if $(TARGET_CC_IS_LEGACY_GCC_$(architecture)) = 1 { compatibilitySources = compatibility.c ; } MergeObject <$(architecture)>os_arch_$(TARGET_ARCH).o : atomic.S byteorder.S get_stack_frame.S system_info.c system_time_asm.S thread.c time.cpp tls.c $(compatibilitySources) # sources from generic generic_stack_trace.cpp ; } }