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