summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cd034acb..e2f54c9a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,6 +31,12 @@ else
openocd_LDADD += -ljim
endif
+if INTERNAL_LIBSWD
+openocd_LDADD += $(top_builddir)/submodules/libswd/src/libswd.la
+else
+openocd_LDADD += -lswd
+endif
+
libopenocd_la_SOURCES = \
hello.c \
openocd.c \