diff --git a/src/Makefile.am b/src/Makefile.am
index e3adaad843ecddcfbedd0a1112c61ef65fa26daa..1e7af9c760dae0ab7b01a39d8c904d09d7fa9e42 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -85,6 +85,9 @@ else
 if RLINK
 LIBUSB = -lusb
 else
+if ULINK
+LIBUSB = -lusb
+else
 if VSLLINK
 LIBUSB = -lusb
 else
@@ -93,6 +96,7 @@ endif
 endif
 endif
 endif
+endif
 
 libopenocd_la_LIBADD = \
 	$(top_builddir)/src/xsvf/libxsvf.la \