08d0db48e3edbc52674c44db9f83a96df54dc664
[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         $(wildcard $(srcdir)/xscale/*)
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         $(INTEL_IA32_SRC) \
39         avrt.c \
40         dsp563xx.c \
41         dsp563xx_once.c \
42         dsp5680xx.c \
43         hla_target.c
44
45 TARGET_CORE_SRC = \
46         algorithm.c \
47         register.c \
48         image.c \
49         breakpoints.c \
50         target.c \
51         target_request.c \
52         testee.c \
53         smp.c
54
55 ARMV4_5_SRC = \
56         armv4_5.c \
57         armv4_5_mmu.c \
58         armv4_5_cache.c \
59         $(ARM7_9_SRC)
60
61 ARM7_9_SRC = \
62         arm7_9_common.c \
63         arm7tdmi.c \
64         arm720t.c \
65         arm9tdmi.c \
66         arm920t.c \
67         arm966e.c \
68         arm946e.c \
69         arm926ejs.c \
70         feroceon.c
71
72 ARM_MISC_SRC = \
73         fa526.c \
74         xscale.c
75
76 ARMV6_SRC = \
77         arm11.c \
78         arm11_dbgtap.c
79
80 ARMV7_SRC = \
81         armv7m.c \
82         cortex_m.c \
83         armv7a.c \
84         cortex_a.c
85
86 ARM_DEBUG_SRC = \
87         arm_dpm.c \
88         arm_jtag.c \
89         arm_disassembler.c \
90         arm_simulator.c \
91         arm_semihosting.c \
92         arm_adi_v5.c \
93         adi_v5_jtag.c \
94         adi_v5_swd.c \
95         adi_v5_cmsis_dap.c \
96         embeddedice.c \
97         trace.c \
98         etb.c \
99         etm.c \
100         $(OOCD_TRACE_FILES) \
101         etm_dummy.c
102
103 AVR32_SRC = \
104         avr32_ap7k.c \
105         avr32_jtag.c \
106         avr32_mem.c \
107         avr32_regs.c
108
109 MIPS32_SRC = \
110         mips32.c \
111         mips_m4k.c \
112         mips32_pracc.c \
113         mips32_dmaacc.c \
114         mips_ejtag.c
115
116 NDS32_SRC = \
117         nds32.c \
118         nds32_reg.c \
119         nds32_cmd.c \
120         nds32_disassembler.c \
121         nds32_tlb.c \
122         nds32_v2.c \
123         nds32_v3_common.c \
124         nds32_v3.c \
125         nds32_v3m.c \
126         nds32_aice.c
127
128 INTEL_IA32_SRC = \
129         quark_x10xx.c \
130         lakemont.c \
131         x86_32_common.c
132
133 noinst_HEADERS = \
134         algorithm.h \
135         arm.h \
136         arm_dpm.h \
137         arm_jtag.h \
138         arm_adi_v5.h \
139         arm_disassembler.h \
140         arm_opcodes.h \
141         arm_simulator.h \
142         arm_semihosting.h \
143         arm7_9_common.h \
144         arm7tdmi.h \
145         arm720t.h \
146         arm9tdmi.h \
147         arm920t.h \
148         arm926ejs.h \
149         arm966e.h \
150         arm946e.h \
151         arm11.h \
152         arm11_dbgtap.h \
153         armv4_5.h \
154         armv4_5_mmu.h \
155         armv4_5_cache.h \
156         armv7a.h \
157         armv7m.h \
158         avrt.h \
159         dsp563xx.h \
160         dsp563xx_once.h \
161         dsp5680xx.h \
162         breakpoints.h \
163         cortex_m.h \
164         cortex_a.h \
165         embeddedice.h \
166         etb.h \
167         etm.h \
168         etm_dummy.h \
169         image.h \
170         mips32.h \
171         mips_m4k.h \
172         mips_ejtag.h \
173         mips32_pracc.h \
174         mips32_dmaacc.h \
175         oocd_trace.h \
176         register.h \
177         target.h \
178         target_type.h \
179         trace.h \
180         target_request.h \
181         trace.h \
182         xscale.h \
183         smp.h \
184         avr32_ap7k.h \
185         avr32_jtag.h \
186         avr32_mem.h \
187         avr32_regs.h \
188         nds32.h \
189         nds32_cmd.h \
190         nds32_disassembler.h \
191         nds32_edm.h \
192         nds32_insn.h \
193         nds32_reg.h \
194         nds32_tlb.h \
195         nds32_v2.h \
196         nds32_v3_common.h \
197         nds32_v3.h \
198         nds32_v3m.h \
199         nds32_aice.h \
200         lakemont.h \
201         x86_32_common.h
202
203 ocddatadir = $(pkglibdir)
204 nobase_dist_ocddata_DATA =
205
206 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in