summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ao-tools/ao-bitbang/Makefile.am2
-rw-r--r--ao-tools/ao-bm70/Makefile.am7
-rw-r--r--ao-tools/ao-boot-stm32/Makefile.am9
-rw-r--r--ao-tools/ao-cal-accel/Makefile.am2
-rw-r--r--ao-tools/ao-cal-freq/Makefile.am2
-rw-r--r--ao-tools/ao-chaosread/Makefile.am2
-rw-r--r--ao-tools/ao-dbg/Makefile.am2
-rw-r--r--ao-tools/ao-dump-up/Makefile.am2
-rw-r--r--ao-tools/ao-dumpflash/Makefile.am2
-rw-r--r--ao-tools/ao-dumplog/Makefile.am2
-rw-r--r--ao-tools/ao-edit-telem/Makefile.am2
-rw-r--r--ao-tools/ao-eeprom/Makefile.am2
-rw-r--r--ao-tools/ao-elftohex/Makefile.am2
-rw-r--r--ao-tools/ao-list/Makefile.am2
-rw-r--r--ao-tools/ao-load/Makefile.am2
-rw-r--r--ao-tools/ao-makebin/Makefile.am2
-rw-r--r--ao-tools/ao-mega/Makefile.am2
-rw-r--r--ao-tools/ao-postflight/Makefile.am2
-rw-r--r--ao-tools/ao-rawload/Makefile.am2
-rw-r--r--ao-tools/ao-send-telem/Makefile.am2
-rw-r--r--ao-tools/ao-sky-flash/Makefile.am2
-rw-r--r--ao-tools/ao-stmload/Makefile.am2
-rw-r--r--ao-tools/ao-telem/Makefile.am2
-rw-r--r--ao-tools/ao-test-baro/Makefile.am2
-rw-r--r--ao-tools/ao-test-flash/Makefile.am2
-rw-r--r--ao-tools/ao-test-gps/Makefile.am2
-rw-r--r--ao-tools/ao-test-igniter/Makefile.am2
-rw-r--r--ao-tools/ao-usbload/Makefile.am2
-rw-r--r--ao-tools/ao-usbtrng/Makefile.am2
-rw-r--r--ao-tools/ao-view/Makefile.am2
-rw-r--r--configure.ac3
31 files changed, 47 insertions, 28 deletions
diff --git a/ao-tools/ao-bitbang/Makefile.am b/ao-tools/ao-bitbang/Makefile.am
index f01cddd4..b42885a4 100644
--- a/ao-tools/ao-bitbang/Makefile.am
+++ b/ao-tools/ao-bitbang/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-bitbang
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_BITBANG_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_bitbang_DEPENDENCIES = $(AO_BITBANG_LIBS)
diff --git a/ao-tools/ao-bm70/Makefile.am b/ao-tools/ao-bm70/Makefile.am
new file mode 100644
index 00000000..f13ce0f1
--- /dev/null
+++ b/ao-tools/ao-bm70/Makefile.am
@@ -0,0 +1,7 @@
+bin_PROGRAMS=ao-bm70
+
+AM_CFLAGS=-O0 -g
+
+ao_bm70_SOURCES = ao-bm70.c
+
+man_MANS=ao-bm70.1
diff --git a/ao-tools/ao-boot-stm32/Makefile.am b/ao-tools/ao-boot-stm32/Makefile.am
new file mode 100644
index 00000000..581eb2d2
--- /dev/null
+++ b/ao-tools/ao-boot-stm32/Makefile.am
@@ -0,0 +1,9 @@
+bin_PROGRAMS=ao-chaosread
+
+AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+
+ao_chaosread_LDADD=$(LIBUSB_LIBS)
+
+ao_chaosread_SOURCES = ao-chaosread.c
+
+man_MANS = ao-chaosread.1
diff --git a/ao-tools/ao-cal-accel/Makefile.am b/ao-tools/ao-cal-accel/Makefile.am
index d278097a..49997252 100644
--- a/ao-tools/ao-cal-accel/Makefile.am
+++ b/ao-tools/ao-cal-accel/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-cal-accel
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_cal_accel_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-cal-freq/Makefile.am b/ao-tools/ao-cal-freq/Makefile.am
index e11c2b0a..eccfde24 100644
--- a/ao-tools/ao-cal-freq/Makefile.am
+++ b/ao-tools/ao-cal-freq/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-cal-freq
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_cal_freq_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-chaosread/Makefile.am b/ao-tools/ao-chaosread/Makefile.am
index 6ba8885c..d2bf0e91 100644
--- a/ao-tools/ao-chaosread/Makefile.am
+++ b/ao-tools/ao-chaosread/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-chaosread
-AM_CFLAGS=$(LIBUSB_CFLAGS) -Wall -Wextra
+AM_CFLAGS=$(WARN_CFLAGS) $(LIBUSB_CFLAGS) -Wall -Wextra
ao_chaosread_LDADD=$(LIBUSB_LIBS)
diff --git a/ao-tools/ao-dbg/Makefile.am b/ao-tools/ao-dbg/Makefile.am
index 2c33cf06..e2fe6542 100644
--- a/ao-tools/ao-dbg/Makefile.am
+++ b/ao-tools/ao-dbg/Makefile.am
@@ -1,6 +1,6 @@
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
diff --git a/ao-tools/ao-dump-up/Makefile.am b/ao-tools/ao-dump-up/Makefile.am
index 94bb94a9..a5395a42 100644
--- a/ao-tools/ao-dump-up/Makefile.am
+++ b/ao-tools/ao-dump-up/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-dump-up
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS)
AO_DUMP_LOG_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_dump_up_DEPENDENCIES = $(AO_DUMP_LOG_LIBS)
diff --git a/ao-tools/ao-dumpflash/Makefile.am b/ao-tools/ao-dumpflash/Makefile.am
index db99f5ae..2b134f94 100644
--- a/ao-tools/ao-dumpflash/Makefile.am
+++ b/ao-tools/ao-dumpflash/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-dumpflash
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_DUMPLOG_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_dumpflash_DEPENDENCIES = $(AO_DUMPLOG_LIBS)
diff --git a/ao-tools/ao-dumplog/Makefile.am b/ao-tools/ao-dumplog/Makefile.am
index a80cac33..bd4a8707 100644
--- a/ao-tools/ao-dumplog/Makefile.am
+++ b/ao-tools/ao-dumplog/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-dumplog
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS)
AO_DUMPLOG_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_dumplog_DEPENDENCIES = $(AO_DUMPLOG_LIBS)
diff --git a/ao-tools/ao-edit-telem/Makefile.am b/ao-tools/ao-edit-telem/Makefile.am
index c5965c47..154d6395 100644
--- a/ao-tools/ao-edit-telem/Makefile.am
+++ b/ao-tools/ao-edit-telem/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-edit-telem
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_POSTFLIGHT_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_edit_telem_DEPENDENCIES = $(AO_POSTFLIGHT_LIBS)
diff --git a/ao-tools/ao-eeprom/Makefile.am b/ao-tools/ao-eeprom/Makefile.am
index efeed976..6c5e0383 100644
--- a/ao-tools/ao-eeprom/Makefile.am
+++ b/ao-tools/ao-eeprom/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-eeprom
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_EEPROM_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_eeprom_DEPENDENCIES = $(AO_EEPROM_LIBS)
diff --git a/ao-tools/ao-elftohex/Makefile.am b/ao-tools/ao-elftohex/Makefile.am
index dd0046d7..5e1975e7 100644
--- a/ao-tools/ao-elftohex/Makefile.am
+++ b/ao-tools/ao-elftohex/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-elftohex
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_ELFTOHEX_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_elftohex_DEPENDENCIES = $(AO_ELFTOHEX_LIBS)
diff --git a/ao-tools/ao-list/Makefile.am b/ao-tools/ao-list/Makefile.am
index de3c4deb..a3fbfa83 100644
--- a/ao-tools/ao-list/Makefile.am
+++ b/ao-tools/ao-list/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-list
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_LIST_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_list_DEPENDENCIES = $(AO_LIST_LIBS)
diff --git a/ao-tools/ao-load/Makefile.am b/ao-tools/ao-load/Makefile.am
index 3c48dc27..b92a9c87 100644
--- a/ao-tools/ao-load/Makefile.am
+++ b/ao-tools/ao-load/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-load
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_LOAD_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_load_DEPENDENCIES = $(AO_LOAD_LIBS)
diff --git a/ao-tools/ao-makebin/Makefile.am b/ao-tools/ao-makebin/Makefile.am
index 758097a4..0946fb23 100644
--- a/ao-tools/ao-makebin/Makefile.am
+++ b/ao-tools/ao-makebin/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-makebin
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_ELFTOHEX_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_makebin_DEPENDENCIES = $(AO_ELFTOHEX_LIBS)
diff --git a/ao-tools/ao-mega/Makefile.am b/ao-tools/ao-mega/Makefile.am
index 22b62608..1a221b68 100644
--- a/ao-tools/ao-mega/Makefile.am
+++ b/ao-tools/ao-mega/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-mega
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_POSTFLIGHT_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_mega_DEPENDENCIES = $(AO_POSTFLIGHT_LIBS)
diff --git a/ao-tools/ao-postflight/Makefile.am b/ao-tools/ao-postflight/Makefile.am
index 589d164a..892c62c6 100644
--- a/ao-tools/ao-postflight/Makefile.am
+++ b/ao-tools/ao-postflight/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-postflight
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS) $(PLPLOT_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS) $(GNOME_CFLAGS) $(PLPLOT_CFLAGS)
AO_POSTFLIGHT_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_postflight_DEPENDENCIES = $(AO_POSTFLIGHT_LIBS)
diff --git a/ao-tools/ao-rawload/Makefile.am b/ao-tools/ao-rawload/Makefile.am
index d2c55658..64880549 100644
--- a/ao-tools/ao-rawload/Makefile.am
+++ b/ao-tools/ao-rawload/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-rawload
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_RAWLOAD_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_rawload_DEPENDENCIES = $(AO_RAWLOAD_LIBS)
diff --git a/ao-tools/ao-send-telem/Makefile.am b/ao-tools/ao-send-telem/Makefile.am
index bfddf131..227e714f 100644
--- a/ao-tools/ao-send-telem/Makefile.am
+++ b/ao-tools/ao-send-telem/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-send-telem
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_POSTFLIGHT_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_send_telem_DEPENDENCIES = $(AO_POSTFLIGHT_LIBS)
diff --git a/ao-tools/ao-sky-flash/Makefile.am b/ao-tools/ao-sky-flash/Makefile.am
index f6c5089a..9e3f2c12 100644
--- a/ao-tools/ao-sky-flash/Makefile.am
+++ b/ao-tools/ao-sky-flash/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-sky-flash
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_SKY_FLASH_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_sky_flash_DEPENDENCIES = $(AO_SKY_FLASH_LIBS)
diff --git a/ao-tools/ao-stmload/Makefile.am b/ao-tools/ao-stmload/Makefile.am
index 45eb6216..a049f275 100644
--- a/ao-tools/ao-stmload/Makefile.am
+++ b/ao-tools/ao-stmload/Makefile.am
@@ -2,7 +2,7 @@ if LIBSTLINK
bin_PROGRAMS=ao-stmload
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(STLINK_CFLAGS) $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(STLINK_CFLAGS) $(LIBUSB_CFLAGS)
AO_STMLOAD_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_stmload_DEPENDENCIES = $(AO_STMLOAD_LIBS)
diff --git a/ao-tools/ao-telem/Makefile.am b/ao-tools/ao-telem/Makefile.am
index 3436443e..8cc05ce3 100644
--- a/ao-tools/ao-telem/Makefile.am
+++ b/ao-tools/ao-telem/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-telem
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
AO_POSTFLIGHT_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
ao_telem_DEPENDENCIES = $(AO_POSTFLIGHT_LIBS)
diff --git a/ao-tools/ao-test-baro/Makefile.am b/ao-tools/ao-test-baro/Makefile.am
index 69e47529..c4d8cf25 100644
--- a/ao-tools/ao-test-baro/Makefile.am
+++ b/ao-tools/ao-test-baro/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-test-baro
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_test_baro_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-test-flash/Makefile.am b/ao-tools/ao-test-flash/Makefile.am
index 0323c282..e01c7a63 100644
--- a/ao-tools/ao-test-flash/Makefile.am
+++ b/ao-tools/ao-test-flash/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-test-flash
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_test_flash_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-test-gps/Makefile.am b/ao-tools/ao-test-gps/Makefile.am
index d89ddddd..db28891d 100644
--- a/ao-tools/ao-test-gps/Makefile.am
+++ b/ao-tools/ao-test-gps/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-test-gps
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_test_gps_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-test-igniter/Makefile.am b/ao-tools/ao-test-igniter/Makefile.am
index e24ed469..6c9efddb 100644
--- a/ao-tools/ao-test-igniter/Makefile.am
+++ b/ao-tools/ao-test-igniter/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-test-igniter
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_test_igniter_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-usbload/Makefile.am b/ao-tools/ao-usbload/Makefile.am
index e3b63a85..9a05d5c4 100644
--- a/ao-tools/ao-usbload/Makefile.am
+++ b/ao-tools/ao-usbload/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-usbload
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_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)
diff --git a/ao-tools/ao-usbtrng/Makefile.am b/ao-tools/ao-usbtrng/Makefile.am
index 5cbab5cf..14113a82 100644
--- a/ao-tools/ao-usbtrng/Makefile.am
+++ b/ao-tools/ao-usbtrng/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=ao-usbtrng
-AM_CFLAGS=-I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
+AM_CFLAGS=$(WARN_CFLAGS) -I$(top_srcdir)/ao-tools/lib $(LIBUSB_CFLAGS)
ao_usbtrng_DEPENDENCIES = $(top_builddir)/ao-tools/lib/libao-tools.a
diff --git a/ao-tools/ao-view/Makefile.am b/ao-tools/ao-view/Makefile.am
index 7a288417..3cdf1ddd 100644
--- a/ao-tools/ao-view/Makefile.am
+++ b/ao-tools/ao-view/Makefile.am
@@ -2,7 +2,7 @@ VERSION=$(shell git describe)
AO_VIEW_CFLAGS=-I$(top_srcdir)/ao-tools/lib
AO_VIEW_LIBS=$(top_builddir)/ao-tools/lib/libao-tools.a
-AM_CFLAGS=$(AO_VIEW_CFLAGS) $(GNOME_CFLAGS) $(ALSA_CFLAGS) -I$(top_srcdir)/src -DAOVIEW_VERSION=\"$(VERSION)\" @FLITE_INCS@
+AM_CFLAGS=$(WARN_CFLAGS) $(AO_VIEW_CFLAGS) $(GNOME_CFLAGS) $(ALSA_CFLAGS) -I$(top_srcdir)/src -DAOVIEW_VERSION=\"$(VERSION)\" @FLITE_INCS@
bin_PROGRAMS=ao-view
diff --git a/configure.ac b/configure.ac
index abaec2cd..32fcea3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,6 +184,9 @@ else
HAVE_GOOGLE_KEY="no"
fi
+WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
+AC_SUBST(WARN_CFLAGS)
+
AC_ARG_ENABLE(faketime, AS_HELP_STRING([--enable-faketime],
[Use faketime program to ensure pdf files are reproducible (default=no)]),
[FAKETIME=$enableval], [FAKETIME=no])