From 74e58a56468e0c1a046d97df1cf28b97f9485eee Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 18 Dec 2007 16:01:54 +0000 Subject: [PATCH] Include drivers for FTDI-based cables even if only FTD2XX was detected git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@862 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 +++- jtag/src/tap/Makefile.am | 17 ++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 0c2699d3..11044cfa 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,10 +1,12 @@ 2007-12-18 Kolja Waschk - * jtag.c: Don't abort on invalid command line options + * jtag.c: Don't abort on invalid command line options * configure.ac: Reorganized the libusb/libftdi detection. * data/MANUFACTURERS: Change 11110000111 code to point to "ARM" instead of Sharp to stop misdetection of other diff --git a/jtag/src/tap/Makefile.am b/jtag/src/tap/Makefile.am index 27a93139..3a60b01a 100644 --- a/jtag/src/tap/Makefile.am +++ b/jtag/src/tap/Makefile.am @@ -58,12 +58,23 @@ endif if HAVE_LIBFTDI libtap_a_SOURCES += \ - parport/ftdi.c \ - cable/usbblaster.c \ - cable/ft2232.c + parport/ftdi.c endif if HAVE_LIBFTD2XX libtap_a_SOURCES += \ parport/ftd2xx.c endif + +FTDIDEPENDENT= \ + cable/usbblaster.c \ + cable/ft2232.c + +if HAVE_LIBFTDI +libtap_a_SOURCES += $(FTDIDEPENDENT) +else +if HAVE_LIBFTD2XX +libtap_a_SOURCES += $(FTDIDEPENDENT) +endif +endif +