]> git.ipfire.org Git - people/ms/u-boot.git/blob - tools/gdb/Makefile
Makefile: move BFD_ROOT_DIR to tools/gdb/Makefile
[people/ms/u-boot.git] / tools / gdb / Makefile
1 #
2 # (C) Copyright 2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # (C) Copyright 2000
6 # Murray Jensen <Murray.Jensen@csiro.au>
7 #
8 # SPDX-License-Identifier: GPL-2.0+
9 #
10
11 ifneq ($(HOSTOS),cygwin)
12
13 # Location of a usable BFD library, where we define "usable" as
14 # "built for ${HOST}, supports ${TARGET}". Sensible values are
15 # - When cross-compiling: the root of the cross-environment
16 # - Linux/ppc (native): /usr
17 # - NetBSD/ppc (native): you lose ... (must extract these from the
18 # binutils build directory, plus the native and U-Boot include
19 # files don't like each other)
20
21 ifeq ($(HOSTOS),darwin)
22 BFD_ROOT_DIR = /usr/local/tools
23 else
24 ifeq ($(HOSTARCH),$(ARCH))
25 # native
26 BFD_ROOT_DIR = /usr
27 else
28 #BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386
29 #BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386
30 BFD_ROOT_DIR = /opt/powerpc
31 endif
32 endif
33
34 #
35 # Use native tools and options
36 #
37 HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic
38
39 hostprogs-y := gdbsend gdbcont
40
41 gdbsend-objs := gdbsend.o error.o remote.o serial.o
42 gdbcont-objs := gdbcont.o error.o remote.o serial.o
43
44 always := $(hostprogs-y)
45
46 endif # cygwin