summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 04:27:02 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-11 05:40:48 -0800
commitb7b4efcdf1dcaa999a246f03ee52b16b57c8b1d5 (patch)
tree4ab6233efc58e0e7f40b4a55fde777b1353db331 /src/target
parentd796ce0e4d17e8a140ad0efa8c63c828ca185455 (diff)
downloadopenocd_libswd-b7b4efcdf1dcaa999a246f03ee52b16b57c8b1d5.tar.gz
openocd_libswd-b7b4efcdf1dcaa999a246f03ee52b16b57c8b1d5.tar.bz2
openocd_libswd-b7b4efcdf1dcaa999a246f03ee52b16b57c8b1d5.tar.xz
openocd_libswd-b7b4efcdf1dcaa999a246f03ee52b16b57c8b1d5.zip
makefiles: improve build order
Separates various groups of files to be built in logical succession. In each layer, the core module (target.c, nand.c, etc.) is built _after_ their helper modules (e.g. image.c, nand_ecc.c) but _before_ any of their drivers (e.g. arm966e.c, mx3_nand.c). This allows problems introduced at the bottom of the stack to result in build failures as soon as possible, as the helpers and core should wrap portions of them.
Diffstat (limited to 'src/target')
-rw-r--r--src/target/Makefile.am127
1 files changed, 76 insertions, 51 deletions
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index f62ba1d8..9dd0bdc9 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -25,90 +25,115 @@ $(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER)
METASOURCES = AUTO
noinst_LTLIBRARIES = libtarget.la
libtarget_la_SOURCES = \
- target.c \
+ $(TARGET_CORE_SRC) \
+ $(ARM_DEBUG_SRC) \
+ $(ARMV4_5_SRC) \
+ $(ARMV6_SRC) \
+ $(ARMV7_SRC) \
+ $(ARM_MISC_SRC) \
+ $(MIPS32_SRC) \
+ avrt.c
+
+TARGET_CORE_SRC = \
+ algorithm.c \
register.c \
+ image.c \
breakpoints.c \
+ target.c \
+ target_request.c
+
+ARMV4_5_SRC = \
armv4_5.c \
- embeddedice.c \
- etm.c \
+ armv4_5_mmu.c \
+ armv4_5_cache.c \
+ $(ARM7_9_SRC)
+
+ARM7_9_SRC = \
+ arm7_9_common.c \
arm7tdmi.c \
+ arm720t.c \
arm9tdmi.c \
- arm_jtag.c \
- arm7_9_common.c \
- algorithm.c \
arm920t.c \
- arm720t.c \
- armv4_5_mmu.c \
- armv4_5_cache.c \
- arm_disassembler.c \
arm966e.c \
- arm926ejs.c \
+ arm926ejs.c
+
+ARM_MISC_SRC = \
fa526.c \
feroceon.c \
- etb.c \
- xscale.c \
- arm_simulator.c \
- image.c \
+ xscale.c
+
+ARMV6_SRC = \
+ arm11.c \
+ arm11_dbgtap.c
+
+ARMV7_SRC = \
armv7m.c \
- armv7a.c \
cortex_m3.c \
- cortex_a8.c \
+ armv7a.c \
+ cortex_a8.c
+
+ARM_DEBUG_SRC = \
+ arm_jtag.c \
+ arm_disassembler.c \
+ arm_simulator.c \
arm_adi_v5.c \
- etm_dummy.c \
- $(OOCD_TRACE_FILES) \
- target_request.c \
+ embeddedice.c \
trace.c \
- arm11.c \
- arm11_dbgtap.c \
+ etb.c \
+ etm.c \
+ $(OOCD_TRACE_FILES) \
+ etm_dummy.c
+
+MIPS32_SRC = \
mips32.c \
mips_m4k.c \
mips32_pracc.c \
mips32_dmaacc.c \
- mips_ejtag.c \
- avrt.c
+ mips_ejtag.c
+
noinst_HEADERS = \
- target.h \
- target_type.h \
- trace.h \
- register.h \
- armv4_5.h \
- embeddedice.h \
- etm.h \
- arm7tdmi.h \
- arm9tdmi.h \
+ algorithm.h \
arm_jtag.h \
+ arm_adi_v5.h \
+ arm_disassembler.h \
+ arm_simulator.h \
arm7_9_common.h \
- arm920t.h \
+ arm7tdmi.h \
arm720t.h \
+ arm9tdmi.h \
+ arm920t.h \
+ arm926ejs.h \
+ arm966e.h \
+ arm11.h \
+ armv4_5.h \
armv4_5_mmu.h \
armv4_5_cache.h \
- breakpoints.h \
- algorithm.h \
- arm_disassembler.h \
- arm966e.h \
- arm926ejs.h \
- etb.h \
- xscale.h \
- xscale_debug.h \
- arm_simulator.h \
- image.h \
- armv7m.h \
armv7a.h \
+ armv7m.h \
+ avrt.h \
+ breakpoints.h \
cortex_m3.h \
cortex_a8.h \
- arm_adi_v5.h \
+ embeddedice.h \
+ etb.h \
+ etm.h \
etm_dummy.h \
- oocd_trace.h \
- target_request.h \
- trace.h \
- arm11.h \
+ image.h \
mips32.h \
mips_m4k.h \
mips_ejtag.h \
mips32_pracc.h \
mips32_dmaacc.h \
- avrt.h
+ oocd_trace.h \
+ register.h \
+ target.h \
+ target_type.h \
+ trace.h \
+ target_request.h \
+ trace.h \
+ xscale.h \
+ xscale_debug.h
nobase_dist_pkglib_DATA =
nobase_dist_pkglib_DATA += ecos/at91eb40a.elf