ao-tools: Add lots of compiler warning flags to ao-tools build
[fw/altos] / ao-tools / ao-dbg / Makefile.am
index ad2cb28..e2fe654 100644 (file)
@@ -1,12 +1,12 @@
 bin_PROGRAMS=ao-dbg
 
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
 AO_DBG_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
 
 man_MANS = ao-dbg.1
 
 ao_dbg_DEPENDENCIES = $(AO_DBG_LIBS)
 
-ao_dbg_LDADD=$(AO_DBG_LIBS) $(LIBUSB_LIBS)  -lreadline
+ao_dbg_LDADD=$(AO_DBG_LIBS) $(LIBUSB_LIBS) $(LIBREADLINE)
 
 ao_dbg_SOURCES = ao-dbg-parse.c ao-dbg-command.c ao-dbg-main.c