summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg.mk4
-rw-r--r--examples/Makefile.am2
-rw-r--r--lib/Makefile.am2
-rw-r--r--src/Makefile.am2
4 files changed, 6 insertions, 4 deletions
diff --git a/cfg.mk b/cfg.mk
index 3278b85..8e27913 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -16,7 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-CFGFLAGS ?= --enable-gtk-doc WARN_CFLAGS=-Werror
+WFLAGS ?= --enable-gcc-warnings
+ADDFLAGS ?=
+CFGFLAGS ?= --enable-gtk-doc $(ADDFLAGS) $(WFLAGS)
INDENT_SOURCES = `find . -name \*.[ch]|grep -v -e ^./gl -e ^./lib/gl -e ^./build-aux/ -e ^./lib/ASN1.c -e ^./tests/Test_tree_asn1_tab.c`
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 62c84f0..b6997c3 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-AM_CFLAGS = $(WARN_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
EXTRA_DIST = asn1Coding_test.asn asn1Coding_test.asg
diff --git a/lib/Makefile.am b/lib/Makefile.am
index ae1988b..c94d937 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -18,7 +18,7 @@
SUBDIRS = gllib
-AM_CFLAGS = $(WARN_CFLAGS) $(CFLAG_VISIBILITY)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY)
AM_CPPFLAGS = -I$(builddir)/gllib -DASN1_BUILDING
include_HEADERS = libtasn1.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 58d8f89..85cf3fa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-AM_CFLAGS = $(WARN_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_builddir)/gl
LDADD = ../lib/libtasn1.la ../gl/libgnu.la