source: freewrt/toolchain/gdb/Makefile@ d98249c

freewrt_2_0
Last change on this file since d98249c was d98249c, checked in by Waldemar Brodkorb <wbx@…>, 3 months ago

gdb: update to 16.2. this is the toolchain component

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# This file is part of the FreeWRT project. FreeWRT is copyrighted
2# material, please see the LICENCE file in the top-level directory
3
4include $(TOPDIR)/rules.mk
5include ../rules.mk
6
7GDB_NAME:=gdb
8GDB_SITE:=@GNU/gdb
9GDB_VERSION:=16.2
10GDB_MD5SUM:=f87bd8571f559d5e104e24cd1902b968
11SOURCE:=$(GDB_NAME)-$(GDB_VERSION).tar.gz
12
13GDB_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(GDB_NAME)-$(GDB_VERSION)
14
15$(DL_DIR)/$(SOURCE):
16 mkdir -p $(DL_DIR)
17 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SOURCE) $(GDB_MD5SUM) $(GDB_SITE)
18
19$(GDB_DIR)/.unpacked: $(DL_DIR)/$(SOURCE)
20 ${EXTRACT_CMD}
21 touch $(GDB_DIR)/.unpacked
22
23$(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
24 mkdir -p $(GDB_DIR)
25 (cd $(GDB_DIR); ./configure \
26 --prefix=$(STAGING_DIR)/usr \
27 --build=$(GNU_HOST_NAME) \
28 --host=$(GNU_HOST_NAME) \
29 --target=$(GNU_TARGET_NAME) \
30 --disable-nls \
31 --disable-sim \
32 --without-uiout \
33 --disable-gdbmi \
34 --disable-tui \
35 --disable-gdbtk \
36 --without-x \
37 --without-included-gettext \
38 --enable-threads \
39 );
40 touch $(GDB_DIR)/.configured
41
42$(GDB_DIR)/.compiled: $(GDB_DIR)/.configured
43 $(MAKE) -j$(FWRT_JLEVEL) -C $(GDB_DIR) all
44 touch $(GDB_DIR)/.compiled
45
46$(GDB_DIR)/.installed: $(GDB_DIR)/.compiled
47 $(MAKE) -j$(FWRT_JLEVEL) -C $(GDB_DIR) install
48 touch $(GDB_DIR)/.installed
49
50source: $(DL_DIR)/$(SOURCE)
51prepare: $(GDB_DIR)/.unpacked
52compile: $(GDB_DIR)/.compiled
53install: $(GDB_DIR)/.installed
54clean:
55 rm -rf $(GDB_DIR)
Note: See TracBrowser for help on using the repository browser.