diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 86716dca353a3f473ffbbfa2f464dbcf4d4eb94e..a2c34f0f74355ca427f55c1ad09c57cc4e870d86 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -10,6 +10,12 @@ AM_CPPFLAGS = \
 	-I$(top_srcdir)/src/jtag \
 	-I$(top_srcdir)/src/xsvf
 
+# ideally this would be specific to xscale_debug.S ...
+libtarget_la_CCASFLAGS = \
+       -Wa,-I$(top_srcdir)/src/target \
+       $(AM_CCASFLAGS)
+
+
 METASOURCES = AUTO
 noinst_LTLIBRARIES = libtarget.la
 libtarget_la_SOURCES = \