tcl/board: Add Rigado BMD-300 Evaluation Kit
[openocd.git] / src / jtag / Makefile.am
1 noinst_LTLIBRARIES += %D%/libjtag.la
2
3 JTAG_SRCS = %D%/commands.c
4 %C%_libjtag_la_LIBADD =
5
6 BUILT_SOURCES += %D%/minidriver_imp.h
7 CLEANFILES += %D%/minidriver_imp.h
8
9 if MINIDRIVER
10
11 if ZY1000
12 JTAG_SRCS += %D%/zy1000/zy1000.c
13 JTAG_MINIDRIVER_DIR = %D%/zy1000
14 endif
15 if MINIDRIVER_DUMMY
16 JTAG_SRCS += %D%/minidummy/minidummy.c
17 JTAG_MINIDRIVER_DIR = %D%/minidummy
18 endif
19
20 MINIDRIVER_IMP_DIR = %D%/minidriver
21
22 %D%/jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h
23         cp $< $@
24
25 BUILT_SOURCES += %D%/jtag_minidriver.h
26
27 CLEANFILES += %D%/jtag_minidriver.h
28
29 else
30
31 MINIDRIVER_IMP_DIR = %D%/drivers
32
33 if HLADAPTER
34 include %D%/hla/Makefile.am
35 %C%_libjtag_la_LIBADD += $(top_builddir)/%D%/hla/libocdhla.la
36 endif
37
38 if AICE
39 include %D%/aice/Makefile.am
40 %C%_libjtag_la_LIBADD += $(top_builddir)/%D%/aice/libocdaice.la
41 endif
42
43 include %D%/drivers/Makefile.am
44 %C%_libjtag_la_LIBADD += $(top_builddir)/%D%/drivers/libocdjtagdrivers.la
45
46 endif
47 # endif // MINIDRIVER
48
49 %D%/minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h
50         cp $< $@
51
52
53 %C%_libjtag_la_SOURCES = \
54         %D%/adapter.c \
55         %D%/core.c \
56         %D%/interface.c \
57         %D%/interfaces.c \
58         %D%/tcl.c \
59         %D%/commands.h \
60         %D%/driver.h \
61         %D%/interface.h \
62         %D%/interfaces.h \
63         %D%/minidriver.h \
64         %D%/jtag.h \
65         %D%/minidriver/minidriver_imp.h \
66         %D%/minidummy/jtag_minidriver.h \
67         %D%/swd.h \
68         %D%/tcl.h \
69         $(JTAG_SRCS)
70
71 STARTUP_TCL_SRCS += %D%/startup.tcl