diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-10-19 19:59:02 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-10-19 19:59:02 -0700 |
commit | 53979244b1e112c815f043ff32bea6a3d21e7a99 (patch) | |
tree | ae52b96097db756910102c3b5181e8167a2aae1f | |
parent | fb61f527312aa9aef1b5286e63d60ae8591e6bd7 (diff) | |
download | openocd_libswd-53979244b1e112c815f043ff32bea6a3d21e7a99.tar.gz openocd_libswd-53979244b1e112c815f043ff32bea6a3d21e7a99.tar.bz2 openocd_libswd-53979244b1e112c815f043ff32bea6a3d21e7a99.tar.xz openocd_libswd-53979244b1e112c815f043ff32bea6a3d21e7a99.zip |
Improve Makefile rules for XScale debug handler; fixes 'make distcheck'.
-rw-r--r-- | src/target/Makefile.am | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/target/Makefile.am b/src/target/Makefile.am index bdef58c2..f62ba1d8 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -11,9 +11,15 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/xsvf BIN2C = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD) -DEBUG_HANDLER = $(top_srcdir)/src/target/xscale/debug_handler.bin -xscale_debug.h: $(BIN2C) $(DEBUG_HANDLER) +DEBUG_HANDLER = $(srcdir)/xscale/debug_handler.bin +EXTRA_DIST = $(DEBUG_HANDLER) + +DEBUG_HEADER = xscale_debug.h +BUILT_SOURCES = $(DEBUG_HEADER) +CLEANFILES = $(DEBUG_HEADER) + +$(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER) $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h METASOURCES = AUTO @@ -61,9 +67,6 @@ libtarget_la_SOURCES = \ mips_ejtag.c \ avrt.c -BUILT_SOURCES = \ - xscale_debug.h - noinst_HEADERS = \ target.h \ target_type.h \ |