or1k: rename or1k-sim to sim-or1k, by default 64mb ram
[openadk.git] / package / gdb / Makefile
blob93d934d11b5229853c6c7c433c64c5c2edcce033
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= gdb
7 PKG_VERSION:= 7.12
8 PKG_RELEASE:= 1
9 PKG_HASH:= 834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94
10 PKG_DESCR:= programm debugger
11 PKG_SECTION:= app/debug
12 PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
13 PKG_DEPENDS:= libncurses zlib libexpat libthread-db
14 PKG_BUILDDEP:= ncurses readline expat zlib
15 PKG_NEEDS:= c++
16 PKG_NOPARALLEL:= 1
18 PKG_ARCH_DEPENDS:= !cris !m68k !avr32 !nios2 !microblaze
20 include ${ADK_TOPDIR}/mk/package.mk
22 $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
25 CONFIGURE_ARGS+= --without-uiout \
26 --disable-tui \
27 --disable-gdbtk \
28 --disable-gdbserver \
29 --without-x \
30 --disable-sim \
31 --disable-werror \
32 --without-python \
33 --without-included-gettext \
34 --without-auto-load-safe-path \
35 --disable-install-libiberty \
36 --disable-install-libbfd \
37 --with-curses \
38 --enable-gdbmi
40 XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
41 # disable honour cflags stuff
42 XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
44 gdb-install:
45 ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
46 ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
47 ${IDIR_GDB}/usr/bin/
48 # shipped libbfd conflicts with system wide one
49 rm -f ${WRKINST}/usr/lib/libbfd*
51 include ${ADK_TOPDIR}/mk/pkg-bottom.mk