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.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/ao-tools/ao-stmload/Makefile.am b/ao-tools/ao-stmload/Makefile.am
index 5aea7db4..4eaf699c 100644
--- a/ao-tools/ao-stmload/Makefile.am
+++ b/ao-tools/ao-stmload/Makefile.am
@@ -4,11 +4,14 @@ bin_PROGRAMS=ao-stmload
LIBSTLINKDIR=/local/src/stlink
-AM_CFLAGS=$(LIBSTLINK_CFLAGS) $(LIBUSB_CFLAGS) -I../lib
+AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBSTLINK_CFLAGS) $(LIBUSB_CFLAGS)
+AO_STMLOAD_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
-ao_stmload_LDADD=$(LIBSTLINK_LIBS) $(LIBUSB_LIBS) -lelf
+ao_stmload_DEPENDENCIES = $(AO_STMLOAD_LIBS)
-ao_stmload_SOURCES=ao-stmload.c
+ao_stmload_LDADD=$(AO_STMLOAD_LIBS) $(LIBSTLINK_LIBS) $(LIBUSB_LIBS) -lelf
+
+ao_stmload_SOURCES=ao-stmload.c ao-elf.c ao-stmload.h ao-selfload.c
man_MANS = ao-stmload.1