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.
 
 
 
 
 
 

41 lines
1015 B

  1. bin_PROGRAMS = openocd
  2. openocd_SOURCES = openocd.c
  3. # set the include path found by configure
  4. INCLUDES = -I$(top_srcdir)/src/helper \
  5. -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/server \
  6. -I$(top_srcdir)/src/flash $(all_includes)
  7. # the library search path.
  8. openocd_LDFLAGS = $(all_libraries)
  9. SUBDIRS = helper jtag xsvf target server flash
  10. if FTDI2232
  11. FTDI2232LIB = -lftdi
  12. else
  13. FTDI2232LIB =
  14. endif
  15. if IS_CYGWIN
  16. if FTD2XXDIR
  17. FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib
  18. else
  19. FTD2XXLDADD = -lftd2xx
  20. endif
  21. else
  22. FTD2XXLDADD = -lftd2xx
  23. endif
  24. if FTD2XX
  25. FTD2XXLIB = $(FTD2XXLDADD)
  26. else
  27. FTD2XXLIB =
  28. endif
  29. openocd_LDADD = $(top_builddir)/src/xsvf/libxsvf.a \
  30. $(top_builddir)/src/target/libtarget.a $(top_builddir)/src/jtag/libjtag.a \
  31. $(top_builddir)/src/helper/libhelper.a \
  32. $(top_builddir)/src/server/libserver.a $(top_builddir)/src/helper/libhelper.a \
  33. $(top_builddir)/src/flash/libflash.a $(top_builddir)/src/target/libtarget.a \
  34. $(FTDI2232LIB) $(FTD2XXLIB)