summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-07-31 20:04:34 +1200
committerMike Beattie <mike@ethernal.org>2012-07-31 20:04:34 +1200
commitfb79f8fb358f8df25674336cd558fc3998cb7d9e (patch)
tree5766e0f32e5524020dd8abbe4f359e3f9da305a9 /ao-tools
parent59588ba34159b27c02e1a886b46497ecfa0cf4d3 (diff)
Don't build ao-stmload if stlink is not available.
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/ao-stmload/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/ao-stmload/Makefile.am b/ao-tools/ao-stmload/Makefile.am
index 375896ea..5aea7db4 100644
--- a/ao-tools/ao-stmload/Makefile.am
+++ b/ao-tools/ao-stmload/Makefile.am
@@ -1,3 +1,5 @@
+if LIBSTLINK
+
bin_PROGRAMS=ao-stmload
LIBSTLINKDIR=/local/src/stlink
@@ -9,3 +11,5 @@ ao_stmload_LDADD=$(LIBSTLINK_LIBS) $(LIBUSB_LIBS) -lelf
ao_stmload_SOURCES=ao-stmload.c
man_MANS = ao-stmload.1
+
+endif