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.
 
 
 
 
 
 

116 lines
2.4 KiB

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