1 #############################################################
5 #############################################################
7 #Use GDB_DIR/etc values from gdb.mk
8 #Build gdbserver in a dir outside of the main gdb tree
9 GDB_WDIR
:=$(BUILD_DIR
)/gdbserver
12 $(GDB_WDIR
)/.configured
: $(GDB_DIR
)/.unpacked
14 (cd
$(GDB_WDIR
); rm -rf config.cache
; \
15 $(TARGET_CONFIGURE_OPTS
) \
16 $(GDB_DIR
)/gdb
/gdbserver
/configure \
17 --target
=$(GNU_TARGET_NAME
) \
18 --host
=$(GNU_TARGET_NAME
) \
23 --libexecdir
=/usr
/lib \
25 --datadir=/usr
/share \
26 --localstatedir
=/var \
29 --includedir=$(STAGING_DIR
)/include \
31 --without-uiout
--disable-gdbmi \
32 --disable-tui
--disable-gdbtk
--without-x \
33 --without-included-gettext \
35 touch
$(GDB_WDIR
)/.configured
37 $(GDB_WDIR
)/gdbserver
: $(GDB_WDIR
)/.configured
38 $(MAKE
) CC
=$(TARGET_CC
) -C
$(GDB_WDIR
)
39 $(STRIP
) $(GDB_WDIR
)/gdbserver
41 $(TARGET_DIR
)/usr
/bin
/gdbserver
: $(GDB_WDIR
)/gdbserver
42 install -c
$(GDB_WDIR
)/gdbserver
$(TARGET_DIR
)/usr
/bin
/gdbserver
43 rm -rf
$(TARGET_DIR
)/share
/locale
$(TARGET_DIR
)/usr
/info \
44 $(TARGET_DIR
)/usr
/man
$(TARGET_DIR
)/usr
/share
/doc
46 gdbserver
: $(TARGET_DIR
)/usr
/bin
/gdbserver
49 $(MAKE
) -C
$(GDB_WDIR
) clean