diff --git a/jtag/src/Makefile.am b/jtag/src/Makefile.am index 2e875499..cff3e020 100644 --- a/jtag/src/Makefile.am +++ b/jtag/src/Makefile.am @@ -33,4 +33,4 @@ jtag_DEPENDENCIES = tap/libtap.a part/libpart.a jtag_LDADD = -lreadline -lncurses -Ltap -ltap -Lpart -lpart -INCLUDES = -I$(top_srcdir)/include $(OPENWINCE_INC) +INCLUDES = -I$(top_srcdir)/include $(OPENWINCE_INC) -DJTAG_DATA_DIR=\"$(pkgdatadir)\" diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index 0ae9dc8c..31afa784 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -99,7 +99,7 @@ main( void ) t = get_token( NULL ); if (ps) parts_free( ps ); - ps = detect_parts( "../data" ); + ps = detect_parts( JTAG_DATA_DIR ); if (!ps->len) continue; parts_set_instruction( ps, "SAMPLE/PRELOAD" );