9dd0bdc91b7b4cc5999ea9806f809a839b6bf152
[openocd.git] / src / target / Makefile.am
1
2 if OOCD_TRACE
3 OOCD_TRACE_FILES = oocd_trace.c
4 else
5 OOCD_TRACE_FILES =
6 endif
7
8 AM_CPPFLAGS = \
9         -I$(top_srcdir)/src/helper \
10         -I$(top_srcdir)/src/jtag \
11         -I$(top_srcdir)/src/xsvf
12
13 BIN2C           = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
14
15 DEBUG_HANDLER   = $(srcdir)/xscale/debug_handler.bin
16 EXTRA_DIST = $(DEBUG_HANDLER)
17
18 DEBUG_HEADER    = xscale_debug.h
19 BUILT_SOURCES = $(DEBUG_HEADER)
20 CLEANFILES = $(DEBUG_HEADER)
21
22 $(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER)
23         $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
24
25 METASOURCES = AUTO
26 noinst_LTLIBRARIES = libtarget.la
27 libtarget_la_SOURCES = \
28         $(TARGET_CORE_SRC) \
29         $(ARM_DEBUG_SRC) \
30         $(ARMV4_5_SRC) \
31         $(ARMV6_SRC) \
32         $(ARMV7_SRC) \
33         $(ARM_MISC_SRC) \
34         $(MIPS32_SRC) \
35         avrt.c
36
37 TARGET_CORE_SRC = \
38         algorithm.c \
39         register.c \
40         image.c \
41         breakpoints.c \
42         target.c \
43         target_request.c
44
45 ARMV4_5_SRC = \
46         armv4_5.c \
47         armv4_5_mmu.c \
48         armv4_5_cache.c \
49         $(ARM7_9_SRC)
50
51 ARM7_9_SRC = \
52         arm7_9_common.c \
53         arm7tdmi.c \
54         arm720t.c \
55         arm9tdmi.c \
56         arm920t.c \
57         arm966e.c \
58         arm926ejs.c
59
60 ARM_MISC_SRC = \
61         fa526.c \
62         feroceon.c \
63         xscale.c
64
65 ARMV6_SRC = \
66         arm11.c \
67         arm11_dbgtap.c
68
69 ARMV7_SRC = \
70         armv7m.c \
71         cortex_m3.c \
72         armv7a.c \
73         cortex_a8.c
74
75 ARM_DEBUG_SRC = \
76         arm_jtag.c \
77         arm_disassembler.c \
78         arm_simulator.c \
79         arm_adi_v5.c \
80         embeddedice.c \
81         trace.c \
82         etb.c \
83         etm.c \
84         $(OOCD_TRACE_FILES) \
85         etm_dummy.c
86
87 MIPS32_SRC = \
88         mips32.c \
89         mips_m4k.c \
90         mips32_pracc.c \
91         mips32_dmaacc.c \
92         mips_ejtag.c
93
94
95 noinst_HEADERS = \
96         algorithm.h \
97         arm_jtag.h \
98         arm_adi_v5.h \
99         arm_disassembler.h \
100         arm_simulator.h \
101         arm7_9_common.h \
102         arm7tdmi.h \
103         arm720t.h \
104         arm9tdmi.h \
105         arm920t.h \
106         arm926ejs.h \
107         arm966e.h \
108         arm11.h \
109         armv4_5.h \
110         armv4_5_mmu.h \
111         armv4_5_cache.h \
112         armv7a.h \
113         armv7m.h \
114         avrt.h \
115         breakpoints.h \
116         cortex_m3.h \
117         cortex_a8.h \
118         embeddedice.h \
119         etb.h \
120         etm.h \
121         etm_dummy.h \
122         image.h \
123         mips32.h \
124         mips_m4k.h \
125         mips_ejtag.h \
126         mips32_pracc.h \
127         mips32_dmaacc.h \
128         oocd_trace.h \
129         register.h \
130         target.h \
131         target_type.h \
132         trace.h \
133         target_request.h \
134         trace.h \
135         xscale.h \
136         xscale_debug.h
137
138 nobase_dist_pkglib_DATA =
139 nobase_dist_pkglib_DATA += ecos/at91eb40a.elf
140
141 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in