cmsis-dap: add initial cmsis-dap support
[openocd.git] / src / target / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 if OOCD_TRACE
4 OOCD_TRACE_FILES = oocd_trace.c
5 else
6 OOCD_TRACE_FILES =
7 endif
8
9 SUBDIRS = openrisc
10 libtarget_la_LIBADD = $(top_builddir)/src/target/openrisc/libopenrisc.la
11
12 BIN2C           = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
13
14 DEBUG_HANDLER   = $(srcdir)/xscale/debug_handler.bin
15 EXTRA_DIST = \
16         startup.tcl \
17         $(DEBUG_HANDLER)
18
19 DEBUG_HEADER    = xscale_debug.h
20 BUILT_SOURCES = $(DEBUG_HEADER)
21 CLEANFILES = $(DEBUG_HEADER)
22
23 $(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER)
24         $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
25
26 METASOURCES = AUTO
27 noinst_LTLIBRARIES = libtarget.la
28 libtarget_la_SOURCES = \
29         $(TARGET_CORE_SRC) \
30         $(ARM_DEBUG_SRC) \
31         $(ARMV4_5_SRC) \
32         $(ARMV6_SRC) \
33         $(ARMV7_SRC) \
34         $(ARM_MISC_SRC) \
35         $(AVR32_SRC) \
36         $(MIPS32_SRC) \
37         $(NDS32_SRC) \
38         avrt.c \
39         dsp563xx.c \
40         dsp563xx_once.c \
41         dsp5680xx.c \
42         hla_target.c
43
44 TARGET_CORE_SRC = \
45         algorithm.c \
46         register.c \
47         image.c \
48         breakpoints.c \
49         target.c \
50         target_request.c \
51         testee.c \
52         smp.c
53
54 ARMV4_5_SRC = \
55         armv4_5.c \
56         armv4_5_mmu.c \
57         armv4_5_cache.c \
58         $(ARM7_9_SRC)
59
60 ARM7_9_SRC = \
61         arm7_9_common.c \
62         arm7tdmi.c \
63         arm720t.c \
64         arm9tdmi.c \
65         arm920t.c \
66         arm966e.c \
67         arm946e.c \
68         arm926ejs.c \
69         feroceon.c
70
71 ARM_MISC_SRC = \
72         fa526.c \
73         xscale.c
74
75 ARMV6_SRC = \
76         arm11.c \
77         arm11_dbgtap.c
78
79 ARMV7_SRC = \
80         armv7m.c \
81         cortex_m.c \
82         armv7a.c \
83         cortex_a.c
84
85 ARM_DEBUG_SRC = \
86         arm_dpm.c \
87         arm_jtag.c \
88         arm_disassembler.c \
89         arm_simulator.c \
90         arm_semihosting.c \
91         arm_adi_v5.c \
92         adi_v5_jtag.c \
93         adi_v5_swd.c \
94         adi_v5_cmsis_dap.c \
95         embeddedice.c \
96         trace.c \
97         etb.c \
98         etm.c \
99         $(OOCD_TRACE_FILES) \
100         etm_dummy.c
101
102 AVR32_SRC = \
103         avr32_ap7k.c \
104         avr32_jtag.c \
105         avr32_mem.c \
106         avr32_regs.c
107
108 MIPS32_SRC = \
109         mips32.c \
110         mips_m4k.c \
111         mips32_pracc.c \
112         mips32_dmaacc.c \
113         mips_ejtag.c
114
115 NDS32_SRC = \
116         nds32.c \
117         nds32_reg.c \
118         nds32_cmd.c \
119         nds32_disassembler.c \
120         nds32_tlb.c \
121         nds32_v2.c \
122         nds32_v3_common.c \
123         nds32_v3.c \
124         nds32_v3m.c \
125         nds32_aice.c
126
127
128 noinst_HEADERS = \
129         algorithm.h \
130         arm.h \
131         arm_dpm.h \
132         arm_jtag.h \
133         arm_adi_v5.h \
134         arm_disassembler.h \
135         arm_opcodes.h \
136         arm_simulator.h \
137         arm_semihosting.h \
138         arm7_9_common.h \
139         arm7tdmi.h \
140         arm720t.h \
141         arm9tdmi.h \
142         arm920t.h \
143         arm926ejs.h \
144         arm966e.h \
145         arm946e.h \
146         arm11.h \
147         arm11_dbgtap.h \
148         armv4_5.h \
149         armv4_5_mmu.h \
150         armv4_5_cache.h \
151         armv7a.h \
152         armv7m.h \
153         avrt.h \
154         dsp563xx.h \
155         dsp563xx_once.h \
156         dsp5680xx.h \
157         breakpoints.h \
158         cortex_m.h \
159         cortex_a.h \
160         embeddedice.h \
161         etb.h \
162         etm.h \
163         etm_dummy.h \
164         image.h \
165         mips32.h \
166         mips_m4k.h \
167         mips_ejtag.h \
168         mips32_pracc.h \
169         mips32_dmaacc.h \
170         oocd_trace.h \
171         register.h \
172         target.h \
173         target_type.h \
174         trace.h \
175         target_request.h \
176         trace.h \
177         xscale.h \
178         smp.h \
179         avr32_ap7k.h \
180         avr32_jtag.h \
181         avr32_mem.h \
182         avr32_regs.h \
183         nds32.h \
184         nds32_cmd.h \
185         nds32_disassembler.h \
186         nds32_edm.h \
187         nds32_insn.h \
188         nds32_reg.h \
189         nds32_tlb.h \
190         nds32_v2.h \
191         nds32_v3_common.h \
192         nds32_v3.h \
193         nds32_v3m.h \
194         nds32_aice.h
195
196 ocddatadir = $(pkglibdir)
197 nobase_dist_ocddata_DATA =
198
199 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in