ifup is now a standalone script
[openwrt.git] / obsolete-buildroot / make / gdbserver.mk
1 #############################################################
2 #
3 # gdbserver
4 #
5 #############################################################
6
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
10
11
12 $(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
13 mkdir -p $(GDB_WDIR)
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) \
19 --prefix=/usr \
20 --exec-prefix=/usr \
21 --bindir=/usr/bin \
22 --sbindir=/usr/sbin \
23 --libexecdir=/usr/lib \
24 --sysconfdir=/etc \
25 --datadir=/usr/share \
26 --localstatedir=/var \
27 --mandir=/usr/man \
28 --infodir=/usr/info \
29 --includedir=$(STAGING_DIR)/include \
30 $(DISABLE_NLS) \
31 --without-uiout --disable-gdbmi \
32 --disable-tui --disable-gdbtk --without-x \
33 --without-included-gettext \
34 );
35 touch $(GDB_WDIR)/.configured
36
37 $(GDB_WDIR)/gdbserver: $(GDB_WDIR)/.configured
38 $(MAKE) CC=$(TARGET_CC) -C $(GDB_WDIR)
39 $(STRIP) $(GDB_WDIR)/gdbserver
40
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
45
46 gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
47
48 gdbserver-clean:
49 $(MAKE) -C $(GDB_WDIR) clean
50
51 gdbserver-dirclean:
52 rm -rf $(GDB_WDIR)
53
This page took 0.043544 seconds and 5 git commands to generate.