summaryrefslogtreecommitdiff
path: root/ao-tools/ao-usbload/Makefile.am
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-28 10:44:07 -0800
committerKeith Packard <keithp@keithp.com>2013-11-28 10:44:07 -0800
commit6d9b93bfd637eb690159fc5efda0390eb602c6a7 (patch)
treed8db220c588e5eb16b6faa38ae5a18846766c6e0 /ao-tools/ao-usbload/Makefile.am
parentf27dff090c8f3a63bd932715643980703160bde6 (diff)
ao-tools: Split out USB loader to ao-usbload
Leave ao-stmload using just stlinkv2 Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-usbload/Makefile.am')
-rw-r--r--ao-tools/ao-usbload/Makefile.am16
1 files changed, 16 insertions, 0 deletions
diff --git a/ao-tools/ao-usbload/Makefile.am b/ao-tools/ao-usbload/Makefile.am
new file mode 100644
index 00000000..144e25df
--- /dev/null
+++ b/ao-tools/ao-usbload/Makefile.am
@@ -0,0 +1,16 @@
+if LIBSTLINK
+
+bin_PROGRAMS=ao-usbload
+
+AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AO_STMLOAD_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
+
+ao_usbload_DEPENDENCIES = $(AO_STMLOAD_LIBS)
+
+ao_usbload_LDADD=$(AO_STMLOAD_LIBS) $(LIBUSB_LIBS) -lelf
+
+ao_usbload_SOURCES=ao-usbload.c ao-usbload.h
+
+man_MANS = ao-usbload.1
+
+endif