source: freewrt/toolchain/gdb/Makefile@ 0ea1f3f

freewrt_1_0 freewrt_2_0
Last change on this file since 0ea1f3f was 0ea1f3f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • add hardware profiles, you can choose between different hardware models
  • add some alsa patches
  • remove default stuff

git-svn-id: svn://www.freewrt.org/trunk/freewrt@157 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $Id: Makefile 1287 2005-06-26 17:31:18Z nbd $
2
3include $(TOPDIR)/rules.mk
4
5GDB_NAME:=gdb
6GDB_SITE:=http://ftp.gnu.org/gnu/gdb
7GDB_VERSION:=6.3
8GDB_SOURCE:=$(GDB_NAME)-$(GDB_VERSION).tar.bz2
9GDB_CAT:=bzcat
10
11GDB_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(GDB_NAME)-$(GDB_VERSION)
12
13$(DL_DIR)/$(GDB_SOURCE):
14 $(WGET) -P $(DL_DIR) $(GDB_SITE)/$(GDB_SOURCE)
15
16$(GDB_DIR)/.patched: $(DL_DIR)/$(GDB_SOURCE)
17 $(GDB_CAT) $(DL_DIR)/$(GDB_SOURCE) | (cd $(TOOLCHAIN_BUILD_DIR); $(TAR_EXTRACT) )
18 $(PATCH) $(GDB_DIR) ./patches
19 # Copy a config.sub from gcc. This is only necessary until
20 # gdb's config.sub supports <arch>-linux-uclibc tuples.
21 # Should probably integrate this into the patch.
22 touch $(GDB_DIR)/.patched
23
24# gdb client
25
26GDB_CLIENT_DIR:=$(TOOLCHAIN_BUILD_DIR)/gdbclient-$(GDB_VERSION)
27
28$(GDB_CLIENT_DIR)/.configured: $(GDB_DIR)/.patched
29 mkdir -p $(GDB_CLIENT_DIR)
30 (cd $(GDB_CLIENT_DIR); \
31 gdb_cv_func_sigsetjmp=yes \
32 $(GDB_DIR)/configure \
33 --prefix=$(STAGING_DIR) \
34 --build=$(GNU_HOST_NAME) \
35 --host=$(GNU_HOST_NAME) \
36 --target=$(REAL_GNU_TARGET_NAME) \
37 --disable-nls \
38 --without-uiout --disable-gdbmi \
39 --disable-tui --disable-gdbtk --without-x \
40 --without-included-gettext \
41 --enable-threads \
42 );
43 touch $(GDB_CLIENT_DIR)/.configured
44
45$(GDB_CLIENT_DIR)/gdb/gdb: $(GDB_CLIENT_DIR)/.configured
46 $(MAKE) -C $(GDB_CLIENT_DIR)
47 strip $(GDB_CLIENT_DIR)/gdb/gdb
48
49$(TARGET_CROSS)gdb: $(GDB_CLIENT_DIR)/gdb/gdb
50 install -c $(GDB_CLIENT_DIR)/gdb/gdb $(TARGET_CROSS)gdb
51 cd $(STAGING_DIR)/bin && \
52 ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
53
54source: $(DL_DIR)/$(GDB_SOURCE)
55prepare: $(GDB_DIR)/.patched
56compile:
57install: $(TARGET_CROSS)gdb
58clean:
59 rm -rf $(GDB_CLIENT_DIR) $(GDB_DIR)
Note: See TracBrowser for help on using the repository browser.