| 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 |
|
|---|
| 4 | include $(TOPDIR)/rules.mk
|
|---|
| 5 | include ../rules.mk
|
|---|
| 6 |
|
|---|
| 7 | GDB_NAME:=gdb
|
|---|
| 8 | GDB_SITE:=@GNU/gdb
|
|---|
| 9 | GDB_VERSION:=16.2
|
|---|
| 10 | GDB_MD5SUM:=f87bd8571f559d5e104e24cd1902b968
|
|---|
| 11 | SOURCE:=$(GDB_NAME)-$(GDB_VERSION).tar.gz
|
|---|
| 12 |
|
|---|
| 13 | GDB_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 |
|
|---|
| 50 | source: $(DL_DIR)/$(SOURCE)
|
|---|
| 51 | prepare: $(GDB_DIR)/.unpacked
|
|---|
| 52 | compile: $(GDB_DIR)/.compiled
|
|---|
| 53 | install: $(GDB_DIR)/.installed
|
|---|
| 54 | clean:
|
|---|
| 55 | rm -rf $(GDB_DIR)
|
|---|