From 8c9f956b7938cc52e8f694493595404e4a41c366 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 28 Mar 2005 15:55:55 +0000 Subject: [PATCH] Jamfile for gdb's opcodes library. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12101 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/gdb/opcodes/Jamfile | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/bin/gdb/opcodes/Jamfile diff --git a/src/bin/gdb/opcodes/Jamfile b/src/bin/gdb/opcodes/Jamfile new file mode 100644 index 0000000000..2b59737a25 --- /dev/null +++ b/src/bin/gdb/opcodes/Jamfile @@ -0,0 +1,38 @@ +SubDir OBOS_TOP src bin gdb opcodes ; + +SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) include ] ; +SubDirHdrs [ FDirName [ FCurrentObjectsDir ] $(DOTDOT) bfd ] ; + # generated bfd headers +SubDirHdrs [ FDirName $(OBOS_TOP) src bin gawk intl ] ; + # Use gawk's libintl for the time being. + # TODO: Put a current version of intl ot src/libs and build a static lib + # all interested apps can link against. + +SubDirCcFlags -DHAVE_CONFIG_H -D_GNU_SOURCE ; + +# architecture specific sources +local opcodesArchSources ; +if $(OBOS_ARCH) = x86 { + opcodesArchSources = i386-dis.c ; +} else if $(OBOS_ARCH) = ppc { + opcodesArchSources = ppc-dis.c ; + # TODO: Check, if this is correct (probably is). +} # else: architecture not supported by Haiku + +local opcodesAllSources = + dis-buf.c + disassemble.c + dis-init.c + $(opcodesArchSources) +; + +StaticLibrary opcodes : + $(opcodesAllSources) + + : [ FCurrentObjectsDir ] +; + +# Make all objects depend on the generated bfd headers (otherwise they will +# not be generated in the first place). +Depends [ FGristFiles $(opcodesAllSources:S=$(SUFOBJ)) ] + : gdb-bfd-generated-headers ;