Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ifneq ($(HOSTOS),cygwin)
  11. # Location of a usable BFD library, where we define "usable" as
  12. # "built for ${HOST}, supports ${TARGET}". Sensible values are
  13. # - When cross-compiling: the root of the cross-environment
  14. # - Linux/ppc (native): /usr
  15. # - NetBSD/ppc (native): you lose ... (must extract these from the
  16. # binutils build directory, plus the native and U-Boot include
  17. # files don't like each other)
  18. ifeq ($(HOSTOS),darwin)
  19. BFD_ROOT_DIR = /usr/local/tools
  20. else
  21. ifeq ($(HOSTARCH),$(ARCH))
  22. # native
  23. BFD_ROOT_DIR = /usr
  24. else
  25. #BFD_ROOT_DIR = /LinuxPPC/CDK # Linux/i386
  26. #BFD_ROOT_DIR = /usr/pkg/cross # NetBSD/i386
  27. BFD_ROOT_DIR = /opt/powerpc
  28. endif
  29. endif
  30. #
  31. # Use native tools and options
  32. #
  33. HOST_EXTRACFLAGS := -I$(BFD_ROOT_DIR)/include -pedantic
  34. hostprogs-y := gdbsend gdbcont
  35. gdbsend-objs := gdbsend.o error.o remote.o serial.o
  36. gdbcont-objs := gdbcont.o error.o remote.o serial.o
  37. always := $(hostprogs-y)
  38. endif # cygwin