Makefile 1.1 KB

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