]> git.sur5r.net Git - openocd/commitdiff
build tweak for bin2char
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 17 Oct 2009 19:14:19 +0000 (12:14 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 17 Oct 2009 19:14:19 +0000 (12:14 -0700)
Work better when building outside the source tree.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/Makefile.am

index ea1641ef0dbfedd41b4976efba999083231780f7..bdef58c24d07829401bf265dbe5076850ac61cc3 100644 (file)
@@ -10,10 +10,11 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/jtag \
        -I$(top_srcdir)/src/xsvf
 
-BIN2C = $(top_srcdir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
+BIN2C          = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
+DEBUG_HANDLER  = $(top_srcdir)/src/target/xscale/debug_handler.bin
 
-xscale_debug.h: $(BIN2C) xscale/debug_handler.bin
-       $(BIN2C) < xscale/debug_handler.bin xscale_debug_handler > xscale_debug.h
+xscale_debug.h: $(BIN2C) $(DEBUG_HANDLER)
+       $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
 
 METASOURCES = AUTO
 noinst_LTLIBRARIES = libtarget.la