summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Smith2009-11-18 18:28:52 +0000
committerBradley Smith2009-11-18 18:28:52 +0000
commite40ee83cfbaba82fa7e6f82bbcbbbc28b20b2aed (patch)
treed05d9f42244b0edc447a5feee0628899bb99b8ef /src
parentFix issues when compiling with optimisations. (diff)
downloadgnurobots-e40ee83cfbaba82fa7e6f82bbcbbbc28b20b2aed.tar.gz
Fix autoconf mess such that you can actually specify CFLAGS to the build.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 75522e7..75f16de 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,16 +17,18 @@
bin_PROGRAMS = gnurobots
-INCLUDES = $(GUILE_CFLAGS) $(READLINE_CFLAGS) $(GTK2_CFLAGS) $(VTE_CFLAGS) \
- $(GTHREAD2_CFLAGS) \
- -I$(top_builddir)/include \
- -DPKGLIBDIR=\"$(pkglibdir)\" \
- -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" \
- -DPKGDATADIR=\"$(pkgdatadir)\" \
- -DMAPS_PATH=\"$(mapsdir)\" \
- -DSCRIPTS_PATH=\"$(schemedir)\"
+AM_CFLAGS = -pedantic-errors -Werror -Wall
+
+INCLUDES = $(GUILE_CFLAGS) $(READLINE_CFLAGS) $(GTK2_CFLAGS) \
+ $(VTE_CFLAGS) $(GTHREAD2_CFLAGS) \
+ -I$(top_builddir)/include \
+ -DPKGLIBDIR=\"$(pkglibdir)\" \
+ -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" \
+ -DPKGDATADIR=\"$(pkgdatadir)\" \
+ -DMAPS_PATH=\"$(mapsdir)\" \
+ -DSCRIPTS_PATH=\"$(schemedir)\"
gnurobots_SOURCES = main.c api.c map.c grobot.c \
- ui-window.c ui-cmdwin.c ui-arena.c
+ ui-window.c ui-cmdwin.c ui-arena.c
gnurobots_LDFLAGS = $(GUILE_LDFLAGS) $(READLINE_LIBS) $(GTHREAD2_LIBS) \
- $(GTK2_LIBS) $(VTE_LIBS) -lutil
+ $(GTK2_LIBS) $(VTE_LIBS) -lutil