1SubDir HAIKU_TOP src add-ons kernel debugger disasm $(TARGET_KERNEL_ARCH_DIR) ; 2 3SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) ] ; 4UsePrivateKernelHeaders ; 5 6local zydisSourceDirectory = [ FDirName $(HAIKU_TOP) src libs zydis ] ; 7UseHeaders [ LibraryHeaders zydis ] : true ; 8UseHeaders [ FDirName $(zydisSourceDirectory) Zydis ] : true ; 9 10SubDirCcFlags -Wno-error=missing-prototypes ; 11 12DEFINES += assert=disasm_arch_assert ; 13DEFINES += __assert_fail=diasm_arch_assert_fail ; 14DEFINES += __posix ; 15DEFINES += ZYDIS_DISABLE_ENCODER ; 16 17local zydisSources = 18 Decoder.c 19 DecoderData.c 20 Disassembler.c 21 Formatter.c 22 FormatterBuffer.c 23 FormatterATT.c 24 FormatterBase.c 25 FormatterIntel.c 26 MetaInfo.c 27 Mnemonic.c 28 Register.c 29 SharedData.c 30 String.c 31 Utils.c 32 Zydis.c 33; 34 35local zycoreSources = 36 Zycore.c 37 Allocator.c 38 Bitset.c 39 Format.c 40 List.c 41 String.c 42 Vector.c 43; 44 45 46SOURCE_GRIST = [ FGrist $(SUBDIR_TOKENS) zydis ] ; 47MakeLocate [ FGristFiles $(zydisSources:S=$(SUFOBJ)) ] 48 : [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) zydis ] ; 49KernelStaticLibrary disasm_arch.a : $(zydisSources) ; 50LOCATE on [ FGristFiles $(zydisSources) ] = [ FDirName $(zydisSourceDirectory) Zydis ] ; 51 52SOURCE_GRIST = [ FGrist $(SUBDIR_TOKENS) zycore ] ; 53MakeLocate [ FGristFiles $(zycoreSources:S=$(SUFOBJ)) ] 54 : [ FDirName $(TARGET_DEBUG_$(DEBUG)_LOCATE_TARGET) zycore ] ; 55KernelStaticLibrary disasm_arch.a : $(zycoreSources) 56; 57LOCATE on [ FGristFiles $(zycoreSources) ] = [ FDirName $(zydisSourceDirectory) Zycore ] ; 58 59SOURCE_GRIST = [ FGrist $(SUBDIR_TOKENS) ] ; 60KernelStaticLibrary disasm_arch.a : disasm_arch.cpp ; 61 62