]> git.sur5r.net Git - openocd/commitdiff
- fix issue when building in separate build dir
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 12 Jul 2008 22:40:49 +0000 (22:40 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 12 Jul 2008 22:40:49 +0000 (22:40 +0000)
- Thanks Duane Ellis

git-svn-id: svn://svn.berlios.de/openocd/trunk@801 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/Makefile.am

index 2f1a221138a56934c05567415dc6ba672eff284e..502a63d50c28cdfeb1ad44ddec748d5d692febec 100644 (file)
@@ -78,8 +78,6 @@ openocd_LDADD = $(top_builddir)/src/startup.o $(top_builddir)/src/xsvf/libxsvf.a
        $(top_builddir)/src/pld/libpld.a \
        $(FTDI2232LIB) $(FTD2XXLIB) $(MINGWLDADD) $(LIBUSB)
 
-       
-       
 nobase_dist_pkglib_DATA = \
        tcl/bitsbytes.tcl  \
        tcl/chip/atmel/at91/aic.tcl  \
@@ -99,4 +97,6 @@ nobase_dist_pkglib_DATA = \
 # Convert .tcl to object
 
 $(top_builddir)/src/startup.o: $(top_srcdir)/src/startup.tcl
-       ${OBJCOPY} -I binary -O ${OBJCOPY_FORMAT} -B ${OBJCOPY_ARCH} startup.tcl startup.o
+       abs_builddir=`cd $(top_builddir) && pwd` && \
+       cd $(top_srcdir)/src &&  \
+       ${OBJCOPY} -I binary -O ${OBJCOPY_FORMAT} -B ${OBJCOPY_ARCH} startup.tcl $$abs_builddir/src/startup.o