build: add build/src to include path
[openocd/cortex.git] / src / target / Makefile.am
blobf1d4caa2fdf9767abeda5f0c91c6020f9e8edc21
2 if OOCD_TRACE
3 OOCD_TRACE_FILES = oocd_trace.c
4 else
5 OOCD_TRACE_FILES =
6 endif
8 AM_CPPFLAGS = \
9         -I$(top_srcdir)/src \
10         -I$(top_builddir)/src
12 BIN2C           = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
14 DEBUG_HANDLER   = $(srcdir)/xscale/debug_handler.bin
15 EXTRA_DIST = \
16         startup.tcl \
17         $(DEBUG_HANDLER)
19 DEBUG_HEADER    = xscale_debug.h
20 BUILT_SOURCES = $(DEBUG_HEADER)
21 CLEANFILES = $(DEBUG_HEADER)
23 $(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER)
24         $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
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         $(MIPS32_SRC) \
36         avrt.c
38 TARGET_CORE_SRC = \
39         algorithm.c \
40         register.c \
41         image.c \
42         breakpoints.c \
43         target.c \
44         target_request.c \
45         testee.c
47 ARMV4_5_SRC = \
48         armv4_5.c \
49         armv4_5_mmu.c \
50         armv4_5_cache.c \
51         $(ARM7_9_SRC)
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         feroceon.c
63 ARM_MISC_SRC = \
64         fa526.c \
65         xscale.c
67 ARMV6_SRC = \
68         arm11.c \
69         arm11_dbgtap.c
71 ARMV7_SRC = \
72         armv7m.c \
73         cortex_m3.c \
74         armv7a.c \
75         cortex_a8.c
77 ARM_DEBUG_SRC = \
78         arm_dpm.c \
79         arm_jtag.c \
80         arm_disassembler.c \
81         arm_simulator.c \
82         arm_semihosting.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
91 MIPS32_SRC = \
92         mips32.c \
93         mips_m4k.c \
94         mips32_pracc.c \
95         mips32_dmaacc.c \
96         mips_ejtag.c
99 noinst_HEADERS = \
100         algorithm.h \
101         arm.h \
102         arm_dpm.h \
103         arm_jtag.h \
104         arm_adi_v5.h \
105         arm_disassembler.h \
106         arm_simulator.h \
107         arm_semihosting.h \
108         arm7_9_common.h \
109         arm7tdmi.h \
110         arm720t.h \
111         arm9tdmi.h \
112         arm920t.h \
113         arm926ejs.h \
114         arm966e.h \
115         arm11.h \
116         arm11_dbgtap.h \
117         armv4_5.h \
118         armv4_5_mmu.h \
119         armv4_5_cache.h \
120         armv7a.h \
121         armv7m.h \
122         avrt.h \
123         breakpoints.h \
124         cortex_m3.h \
125         cortex_a8.h \
126         embeddedice.h \
127         etb.h \
128         etm.h \
129         etm_dummy.h \
130         image.h \
131         mips32.h \
132         mips_m4k.h \
133         mips_ejtag.h \
134         mips32_pracc.h \
135         mips32_dmaacc.h \
136         oocd_trace.h \
137         register.h \
138         target.h \
139         target_type.h \
140         trace.h \
141         target_request.h \
142         trace.h \
143         xscale.h \
144         xscale_debug.h
146 nobase_dist_pkglib_DATA =
147 nobase_dist_pkglib_DATA += ecos/at91eb40a.elf
149 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in