1SubDir HAIKU_TOP src kits debug ;
2
3UsePrivateHeaders debug ;
4UsePrivateHeaders kernel ;
5	# for <util/DoublyLinkedList.h>
6UsePrivateHeaders libroot ;
7UsePrivateHeaders runtime_loader ;
8UsePrivateHeaders shared ;
9SubDirHdrs [ FDirName $(SUBDIR) arch ] ;
10
11local architectureObject ;
12for architectureObject in [ MultiArchSubDirSetup ] {
13	on $(architectureObject) {
14		local architecture = $(TARGET_PACKAGING_ARCH) ;
15
16		UsePrivateSystemHeaders ;
17
18		SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;
19
20		local libroot = [ MultiArchConditionalGristFiles libdebug.so
21			: : $(architecture) ] ;
22
23		SharedLibrary [ MultiArchDefaultGristFiles libdebug.so ] :
24			debug_support.cpp
25			DebugContext.cpp
26			DebugEventStream.cpp
27			DebugLooper.cpp
28			DebugMessageHandler.cpp
29			Image.cpp
30			SymbolLookup.cpp
31			TeamDebugger.cpp
32
33			# architecture specific
34			arch_debug_support.cpp
35
36			: be [ TargetLibsupc++ ]
37			;
38	}
39}
40