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