Fix various makefile using STRICT_OPTIONS

parent 324414ed
......@@ -137,6 +137,7 @@ dnl -Wno-error=unused-but-set-variable "
AC_SUBST(STRICT_OPTIONS)
AC_SUBST(STRICT_OPTIONS_CC)
AC_SUBST(STRICT_OPTIONS_CXX)
AC_SUBST(LESS_STRICT_OPTIONS)
# Checks for libraries.
......
noinst_LTLIBRARIES=libbellesip_generated.la
libbellesip_generated_la_CFLAGS=$(LIBBELLESIP_CFLAGS) $(ANTLR_CFLAGS) $(STRICT_OPTIONS)
libbellesip_generated_la_CFLAGS=$(LIBBELLESIP_CFLAGS) $(ANTLR_CFLAGS) $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC)
nodist_libbellesip_generated_la_SOURCES= \
belle_sip_messageParser.c belle_sip_messageParser.h \
belle_sip_messageLexer.c belle_sip_messageLexer.h \
belle_sdpParser.c belle_sdpParser.h \
belle_sdpLexer.c belle_sdpLexer.h
belle_sdpLexer.c belle_sdpLexer.h
.NOTPARALLEL $(builddir)/belle_sip_messageParser.c $(builddir)/belle_sip_messageParser.h \
$(builddir)/belle_sip_messageLexer.c $(builddir)/belle_sip_messageLexer.h : belle_sip_message.g
$(builddir)/belle_sip_messageLexer.c $(builddir)/belle_sip_messageLexer.h : belle_sip_message.g
$(ANTLR) -make -Xmultithreaded -fo $(builddir) $(srcdir)/belle_sip_message.g
.NOTPARALLEL $(builddir)/belle_sdpLexer.c \
......@@ -21,9 +21,9 @@ nodist_libbellesip_generated_la_SOURCES= \
$(ANTLR) -make -Xmultithreaded -fo $(builddir) $<
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
EXTRA_DIST= belle_sdp.g belle_sip_message.g
EXTRA_DIST= belle_sdp.g belle_sip_message.g
CLEANFILES=$(nodist_libbellesip_generated_la_SOURCES) *.tokens
CLEANFILES=$(nodist_libbellesip_generated_la_SOURCES) *.tokens
......@@ -20,7 +20,7 @@ belle_sip_tester_SOURCES= belle_sip_tester.c belle_sip_tester.h\
belle_http_tester.c
belle_sip_tester_CFLAGS=$(CUNIT_CFLAGS) $(STRICT_OPTIONS) $(TLS_CFLAGS)
belle_sip_tester_CFLAGS=$(CUNIT_CFLAGS) $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) $(TLS_CFLAGS)
belle_sip_tester_LDFLAGS=$(CUNIT_LIBS) $(AM_LDFLAGS)
......@@ -32,11 +32,11 @@ belle_http_get_SOURCES=get.c
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
LDADD=$(top_builddir)/src/libbellesip.la
LDADD=$(top_builddir)/src/libbellesip.la
AM_LDFLAGS=-no-undefined -export-dynamic
AM_LDFLAGS=-no-undefined -export-dynamic
AM_CFLAGS=$(STRICT_OPTIONS)
AM_CFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC)
test: belle_sip_tester
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment