summaryrefslogtreecommitdiff
path: root/ao-tools/ao-stmload/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools/ao-stmload/Makefile.am')
-rw-r--r--ao-tools/ao-stmload/Makefile.am11
1 files changed, 6 insertions, 5 deletions
diff --git a/ao-tools/ao-stmload/Makefile.am b/ao-tools/ao-stmload/Makefile.am
index 77979daf..5aea7db4 100644
--- a/ao-tools/ao-stmload/Makefile.am
+++ b/ao-tools/ao-stmload/Makefile.am
@@ -1,14 +1,15 @@
+if LIBSTLINK
+
bin_PROGRAMS=ao-stmload
LIBSTLINKDIR=/local/src/stlink
-AM_CFLAGS=-I$(LIBSTLINKDIR)/src $(LIBUSB_CFLAGS) -I../lib
-
-AO_STMLOAD_LIBS=$(LIBSTLINKDIR)/libstlink.a
-ao_stmload_DEPENDENCIES = $(AO_STMLOAD_LIBS)
+AM_CFLAGS=$(LIBSTLINK_CFLAGS) $(LIBUSB_CFLAGS) -I../lib
-ao_stmload_LDADD=$(AO_STMLOAD_LIBS) $(LIBUSB_LIBS) -lelf
+ao_stmload_LDADD=$(LIBSTLINK_LIBS) $(LIBUSB_LIBS) -lelf
ao_stmload_SOURCES=ao-stmload.c
man_MANS = ao-stmload.1
+
+endif