You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

98 lines
2.1 KiB

  1. bin_PROGRAMS = openocd
  2. if ECOSBOARD
  3. MAINFILE = ecosboard.c
  4. else
  5. MAINFILE = main.c
  6. endif
  7. openocd_SOURCES = $(MAINFILE) openocd.c
  8. # set the include path found by configure
  9. INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper \
  10. -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/svf \
  11. -I$(top_srcdir)/src/server -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes)
  12. # pass path to prefix path
  13. openocd_CPPFLAGS = \
  14. -DPKGLIBDIR=\"$(pkglibdir)\" \
  15. -DPKGBLDDATE=\"`date +%F-%R`\" \
  16. -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\" \
  17. @CPPFLAGS@
  18. # the library search path.
  19. openocd_LDFLAGS = $(all_libraries)
  20. SUBDIRS = helper jtag xsvf svf target server flash pld
  21. if IS_MINGW
  22. MINGWLDADD = -lwsock32
  23. else
  24. MINGWLDADD =
  25. endif
  26. if FT2232_LIBFTDI
  27. FTDI2232LIB = -lftdi -lusb
  28. else
  29. if PRESTO_LIBFTDI
  30. FTDI2232LIB = -lftdi -lusb
  31. else
  32. FTDI2232LIB =
  33. endif
  34. endif
  35. if USBPROG
  36. LIBUSB = -lusb
  37. else
  38. if JLINK
  39. LIBUSB = -lusb
  40. else
  41. if RLINK
  42. LIBUSB = -lusb
  43. else
  44. if VSLLINK
  45. LIBUSB = -lusb
  46. else
  47. LIBUSB =
  48. endif
  49. endif
  50. endif
  51. endif
  52. openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a $(top_builddir)/src/svf/libsvf.a \
  53. $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
  54. $(top_builddir)/src/helper/libhelper.a \
  55. $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
  56. $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
  57. $(top_builddir)/src/pld/libpld.a \
  58. $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
  59. if HTTPD
  60. openocd_LDADD += -lmicrohttpd
  61. endif
  62. nobase_dist_pkglib_DATA = \
  63. tcl/bitsbytes.tcl \
  64. tcl/chip/atmel/at91/aic.tcl \
  65. tcl/chip/atmel/at91/at91sam7x128.tcl \
  66. tcl/chip/atmel/at91/at91sam7x256.tcl \
  67. tcl/chip/atmel/at91/pmc.tcl \
  68. tcl/chip/atmel/at91/rtt.tcl \
  69. tcl/chip/atmel/at91/usarts.tcl \
  70. tcl/chip/st/stm32/stm32.tcl \
  71. tcl/chip/st/stm32/stm32_rcc.tcl \
  72. tcl/chip/st/stm32/stm32_regs.tcl \
  73. tcl/cpu/arm/arm7tdmi.tcl \
  74. tcl/cpu/arm/arm920.tcl \
  75. tcl/cpu/arm/arm946.tcl \
  76. tcl/cpu/arm/arm966.tcl \
  77. tcl/cpu/arm/cortex_m3.tcl \
  78. tcl/memory.tcl \
  79. tcl/mmr_helpers.tcl \
  80. tcl/readable.tcl