drivers/linuxgpiod: Migrate to adapter gpio commands
[fw/openocd] / src / jtag / Makefile.am
index c735897eb6888dcacbfd3579adad3cd400c19699..43c6f8b27d2ffd7f8e66d0745e8d8648f75b32ef 100644 (file)
@@ -1,50 +1,38 @@
-AM_CPPFLAGS = \
-       -I$(top_srcdir)/src/helper \
-       -I$(top_srcdir)/src/target
+# SPDX-License-Identifier: GPL-2.0-or-later
 
-METASOURCES = AUTO
-noinst_LTLIBRARIES = libjtag.la
+noinst_LTLIBRARIES += %D%/libjtag.la
 
-SUBDIRS =
-DRIVERFILES =
-libjtag_la_LIBADD =
+%C%_libjtag_la_LIBADD =
 
-if MINIDRIVER
-
-if ZY1000
-DRIVERFILES += zy1000/zy1000.c
-AM_CPPFLAGS += -I$(srcdir)/zy1000
-endif
-if MINIDRIVER_DUMMY
-DRIVERFILES += minidummy/minidummy.c commands.c
-AM_CPPFLAGS += -I$(srcdir)/minidummy
+if HLADAPTER
+include %D%/hla/Makefile.am
+%C%_libjtag_la_LIBADD += $(top_builddir)/%D%/hla/libocdhla.la
 endif
 
-else
-
-DRIVERFILES += commands.c
-
-SUBDIRS += drivers
-libjtag_la_LIBADD += $(top_builddir)/src/jtag/drivers/libocdjtagdrivers.la
-
+if AICE
+include %D%/aice/Makefile.am
+%C%_libjtag_la_LIBADD += $(top_builddir)/%D%/aice/libocdaice.la
 endif
-# endif // MINIDRIVER
-
-libjtag_la_SOURCES = \
-       core.c \
-       interface.c \
-       interfaces.c \
-       tcl.c \
-       $(DRIVERFILES)
-
-noinst_HEADERS = \
-       commands.h \
-       interface.h \
-       interfaces.h \
-       minidriver.h \
-       jtag.h \
-       minidummy/jtag_minidriver.h
-
-EXTRA_DIST = startup.tcl
 
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+include %D%/drivers/Makefile.am
+%C%_libjtag_la_LIBADD += $(top_builddir)/%D%/drivers/libocdjtagdrivers.la
+
+%C%_libjtag_la_SOURCES = \
+       %D%/adapter.c \
+       %D%/adapter.h \
+       %D%/commands.c \
+       %D%/core.c \
+       %D%/interface.c \
+       %D%/interfaces.c \
+       %D%/tcl.c \
+       %D%/swim.c \
+       %D%/commands.h \
+       %D%/interface.h \
+       %D%/interfaces.h \
+       %D%/minidriver.h \
+       %D%/jtag.h \
+       %D%/swd.h \
+       %D%/swim.h \
+       %D%/tcl.h
+
+STARTUP_TCL_SRCS += %D%/startup.tcl