split startup.tcl file across modules
[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
47 ARMV4_5_SRC = \
48         armv4_5.c \
49         armv4_5_mmu.c \
50         armv4_5_cache.c \
51         $(ARM7_9_SRC)
52
53 ARM7_9_SRC = \
54         arm7_9_common.c \
55         arm7tdmi.c \
56         arm720t.c \
57         arm9tdmi.c \
58         arm920t.c \
59         arm966e.c \
60         arm926ejs.c
61
62 ARM_MISC_SRC = \
63         fa526.c \
64         feroceon.c \
65         xscale.c
66
67 ARMV6_SRC = \
68         arm11.c \
69         arm11_dbgtap.c
70
71 ARMV7_SRC = \
72         armv7m.c \
73         cortex_m3.c \
74         armv7a.c \
75         cortex_a8.c
76
77 ARM_DEBUG_SRC = \
78         arm_jtag.c \
79         arm_disassembler.c \
80         arm_simulator.c \
81         arm_adi_v5.c \
82         embeddedice.c \
83         trace.c \
84         etb.c \
85         etm.c \
86         $(OOCD_TRACE_FILES) \
87         etm_dummy.c
88
89 MIPS32_SRC = \
90         mips32.c \
91         mips_m4k.c \
92         mips32_pracc.c \
93         mips32_dmaacc.c \
94         mips_ejtag.c
95
96
97 noinst_HEADERS = \
98         algorithm.h \
99         arm_jtag.h \
100         arm_adi_v5.h \
101         arm_disassembler.h \
102         arm_simulator.h \
103         arm7_9_common.h \
104         arm7tdmi.h \
105         arm720t.h \
106         arm9tdmi.h \
107         arm920t.h \
108         arm926ejs.h \
109         arm966e.h \
110         arm11.h \
111         armv4_5.h \
112         armv4_5_mmu.h \
113         armv4_5_cache.h \
114         armv7a.h \
115         armv7m.h \
116         avrt.h \
117         breakpoints.h \
118         cortex_m3.h \
119         cortex_a8.h \
120         embeddedice.h \
121         etb.h \
122         etm.h \
123         etm_dummy.h \
124         image.h \
125         mips32.h \
126         mips_m4k.h \
127         mips_ejtag.h \
128         mips32_pracc.h \
129         mips32_dmaacc.h \
130         oocd_trace.h \
131         register.h \
132         target.h \
133         target_type.h \
134         trace.h \
135         target_request.h \
136         trace.h \
137         xscale.h \
138         xscale_debug.h
139
140 nobase_dist_pkglib_DATA =
141 nobase_dist_pkglib_DATA += ecos/at91eb40a.elf
142
143 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in