From 1cfa4bfd3bbd1f92d68b5e3d9bb8e149952dd3d4 Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Sat, 25 Jun 2011 03:28:15 +0200 Subject: Fixed linking with innternal/external libswd. --- src/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) 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 \ -- cgit v1.2.3