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