move patch to correct directory
[openadk.git] / toolchain / gdb / Makefile
blob8f115f93e330213912ecbbed13d111f4d5cf7c4b
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
5 include ../rules.mk
6 include Makefile.inc
7 include ${ADK_TOPDIR}/mk/buildhlp.mk
9 ifeq (${ADK_MAKE_PARALLEL},y)
10 GDB_MAKEOPTS+= -j${ADK_MAKE_JOBS}
11 endif
13 ifeq ($(ADK_TARGET_SIM),y)
14 CONFIGURE_ARGS:= --enable-sim --enable-sim-stdio
15 else
16 CONFIGURE_ARGS:= --disable-sim
17 endif
19 $(WRKBUILD)/.headers:
20 $(WRKBUILD)/.configured:
21 $(SED) 's/install_to_$(INSTALL_DEST) //' ${WRKBUILD}/libiberty/Makefile.in
22 (cd $(WRKBUILD); \
23 gdb_cv_func_sigsetjmp=yes \
24 ./configure \
25 --prefix=$(STAGING_HOST_DIR) \
26 --build=$(GNU_HOST_NAME) \
27 --host=$(GNU_HOST_NAME) \
28 --target=$(GNU_TARGET_NAME) \
29 --disable-dependency-tracking \
30 --without-uiout \
31 --enable-gdbmi \
32 --disable-gdbtk \
33 --without-included-gettext \
34 --disable-libtool-lock \
35 --disable-nls \
36 --with-curses \
37 --enable-threads \
38 --disable-tui \
39 --disable-werror \
40 --disable-install-libiberty \
41 --without-python \
42 --without-x \
43 $(CONFIGURE_ARGS) \
45 touch $@
47 $(WRKBUILD)/.compiled:
48 $(MAKE) ${GDB_MAKEOPTS} -C $(WRKBUILD) CFLAGS="-fPIC ${CFLAGS_FOR_BUILD}"
49 touch $@
51 $(WRKBUILD)/.installed:
52 $(INSTALL_BIN) $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
53 ifeq ($(ADK_TARGET_SIM),y)
54 ifeq ($(ADK_TARGET_ARCH_BFIN),y)
55 $(INSTALL_BIN) $(WRKBUILD)/sim/bfin/run $(TARGET_CROSS)run
56 endif
57 ifeq ($(ADK_TARGET_ARCH_H8300),y)
58 $(INSTALL_BIN) $(WRKBUILD)/sim/h8300/run $(TARGET_CROSS)run
59 endif
60 endif
61 touch $@
63 include ${ADK_TOPDIR}/mk/toolchain.mk