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.
 
 
 
 
 
 

77 lines
1.5 KiB

  1. bin_PROGRAMS = openocd
  2. if ECOSBOARD
  3. MAINFILE = ecosboard.c
  4. else
  5. MAINFILE = openocd.c
  6. endif
  7. openocd_SOURCES = $(MAINFILE)
  8. # set the include path found by configure
  9. INCLUDES = -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/server \
  11. -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 target server flash pld
  21. if IS_MINGW
  22. MINGWLDADD = -lwsock32
  23. else
  24. MINGWLDADD =
  25. endif
  26. if FT2232_LIBFTDI
  27. FTDI2232LIB = -lftdi
  28. else
  29. if PRESTO_LIBFTDI
  30. FTDI2232LIB = -lftdi
  31. else
  32. FTDI2232LIB =
  33. endif
  34. endif
  35. if USBPROG
  36. LIBUSB = -lusb
  37. else
  38. LIBUSB =
  39. endif
  40. if IS_WIN32
  41. if FTD2XXDIR
  42. FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
  43. else
  44. FTD2XXLDADD = -lftd2xx
  45. endif
  46. else
  47. FTD2XXLDADD = -lftd2xx
  48. endif
  49. if FT2232_FTD2XX
  50. FTD2XXLIB = $(FTD2XXLDADD)
  51. else
  52. if PRESTO_FTD2XX
  53. FTD2XXLIB = $(FTD2XXLDADD)
  54. else
  55. FTD2XXLIB =
  56. endif
  57. endif
  58. openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
  59. $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
  60. $(top_builddir)/src/helper/libhelper.a \
  61. $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
  62. $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
  63. $(top_builddir)/src/pld/libpld.a \
  64. $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)