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.
 
 
 
 
 
 

101 lines
2.3 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. if RELEASE
  17. openocd_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\"
  18. else
  19. openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\"
  20. endif
  21. # add default CPPFLAGS
  22. openocd_CPPFLAGS += @CPPFLAGS@
  23. # the library search path.
  24. openocd_LDFLAGS = $(all_libraries)
  25. SUBDIRS = helper jtag xsvf svf target server flash pld
  26. if IS_MINGW
  27. MINGWLDADD = -lwsock32
  28. else
  29. MINGWLDADD =
  30. endif
  31. if FT2232_LIBFTDI
  32. FTDI2232LIB = -lftdi -lusb
  33. else
  34. if PRESTO_LIBFTDI
  35. FTDI2232LIB = -lftdi -lusb
  36. else
  37. FTDI2232LIB =
  38. endif
  39. endif
  40. if USBPROG
  41. LIBUSB = -lusb
  42. else
  43. if JLINK
  44. LIBUSB = -lusb
  45. else
  46. if RLINK
  47. LIBUSB = -lusb
  48. else
  49. if VSLLINK
  50. LIBUSB = -lusb
  51. else
  52. LIBUSB =
  53. endif
  54. endif
  55. endif
  56. endif
  57. openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a $(top_builddir)/src/svf/libsvf.a \
  58. $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
  59. $(top_builddir)/src/helper/libhelper.a \
  60. $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
  61. $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
  62. $(top_builddir)/src/pld/libpld.a \
  63. $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
  64. if HTTPD
  65. openocd_LDADD += -lmicrohttpd
  66. endif
  67. nobase_dist_pkglib_DATA = \
  68. tcl/bitsbytes.tcl \
  69. tcl/chip/atmel/at91/aic.tcl \
  70. tcl/chip/atmel/at91/at91sam7x128.tcl \
  71. tcl/chip/atmel/at91/at91sam7x256.tcl \
  72. tcl/chip/atmel/at91/pmc.tcl \
  73. tcl/chip/atmel/at91/rtt.tcl \
  74. tcl/chip/atmel/at91/usarts.tcl \
  75. tcl/chip/st/stm32/stm32.tcl \
  76. tcl/chip/st/stm32/stm32_rcc.tcl \
  77. tcl/chip/st/stm32/stm32_regs.tcl \
  78. tcl/cpu/arm/arm7tdmi.tcl \
  79. tcl/cpu/arm/arm920.tcl \
  80. tcl/cpu/arm/arm946.tcl \
  81. tcl/cpu/arm/arm966.tcl \
  82. tcl/cpu/arm/cortex_m3.tcl \
  83. tcl/memory.tcl \
  84. tcl/mmr_helpers.tcl \
  85. tcl/readable.tcl
  86. MAINTAINERCLEANFILES = Makefile.in