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.
 
 
 
 
 
 

81 lines
1.3 KiB

  1. include $(top_srcdir)/common.mk
  2. METASOURCES = AUTO
  3. noinst_LTLIBRARIES = libjtag.la
  4. SUBDIRS =
  5. DRIVERFILES =
  6. libjtag_la_LIBADD =
  7. CLEANFILES =
  8. BUILT_SOURCES =
  9. BUILT_SOURCES += minidriver_imp.h
  10. CLEANFILES += minidriver_imp.h
  11. if MINIDRIVER
  12. if ZY1000
  13. DRIVERFILES += zy1000/zy1000.c
  14. JTAG_MINIDRIVER_DIR = $(srcdir)/zy1000
  15. endif
  16. if MINIDRIVER_DUMMY
  17. DRIVERFILES += minidummy/minidummy.c commands.c
  18. JTAG_MINIDRIVER_DIR = $(srcdir)/minidummy
  19. endif
  20. MINIDRIVER_IMP_DIR = $(srcdir)/minidriver
  21. jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h
  22. cp $< $@
  23. BUILT_SOURCES += jtag_minidriver.h
  24. CLEANFILES += jtag_minidriver.h
  25. else
  26. MINIDRIVER_IMP_DIR = $(srcdir)/drivers
  27. DRIVERFILES += commands.c
  28. if STLINK
  29. SUBDIRS += stlink
  30. libjtag_la_LIBADD += $(top_builddir)/src/jtag/stlink/libocdstlink.la
  31. endif
  32. SUBDIRS += drivers
  33. libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
  34. endif
  35. # endif // MINIDRIVER
  36. minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h
  37. cp $< $@
  38. libjtag_la_SOURCES = \
  39. adapter.c \
  40. core.c \
  41. interface.c \
  42. interfaces.c \
  43. tcl.c \
  44. $(DRIVERFILES)
  45. noinst_HEADERS = \
  46. commands.h \
  47. driver.h \
  48. interface.h \
  49. interfaces.h \
  50. minidriver.h \
  51. jtag.h \
  52. minidriver/minidriver_imp.h \
  53. minidummy/jtag_minidriver.h \
  54. swd.h
  55. EXTRA_DIST = startup.tcl
  56. MAINTAINERCLEANFILES = $(srcdir)/Makefile.in