Make: break directly on compile warning
This commit is contained in:
parent
2831be4153
commit
2d709378f7
4 changed files with 21 additions and 7 deletions
|
|
@ -86,10 +86,10 @@ checkinstall:
|
||||||
|
|
||||||
# May cause circular include->include,lib
|
# May cause circular include->include,lib
|
||||||
$(SUBDIRS2): $(SUBDIRS1) # Cannot build app before lib (for parallel make -j)
|
$(SUBDIRS2): $(SUBDIRS1) # Cannot build app before lib (for parallel make -j)
|
||||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
(cd $@ && $(MAKE) $(MFLAGS) all || exit 1)
|
||||||
|
|
||||||
$(SUBDIRS1):
|
$(SUBDIRS1):
|
||||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
(cd $@ && $(MAKE) $(MFLAGS) all || exit 1)
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
for i in $(SUBDIRS) doc example docker; \
|
for i in $(SUBDIRS) doc example docker; \
|
||||||
|
|
|
||||||
18
configure
vendored
18
configure
vendored
|
|
@ -777,6 +777,7 @@ with_yang_standard_dir
|
||||||
with_clicon_user
|
with_clicon_user
|
||||||
with_clicon_group
|
with_clicon_group
|
||||||
enable_nls
|
enable_nls
|
||||||
|
enable_event_poll
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
|
@ -1423,6 +1424,7 @@ Optional Features:
|
||||||
http/1 only
|
http/1 only
|
||||||
--enable-netsnmp Enable net-snmp Clixon YANG mapping
|
--enable-netsnmp Enable net-snmp Clixon YANG mapping
|
||||||
|
|
||||||
|
--enable-event-poll Enable event polling feature
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
|
@ -2838,10 +2840,10 @@ fi
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug is $ac_enable_debug" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug is $ac_enable_debug" >&5
|
||||||
printf "%s\n" "debug is $ac_enable_debug" >&6; }
|
printf "%s\n" "debug is $ac_enable_debug" >&6; }
|
||||||
if test "$ac_enable_debug" = "yes"; then
|
if test "$ac_enable_debug" = "yes"; then
|
||||||
: ${CFLAGS="-g -Wall"}
|
: ${CFLAGS="-g -Wall -Werror"}
|
||||||
INSTALLFLAGS=""
|
INSTALLFLAGS=""
|
||||||
else
|
else
|
||||||
: ${CFLAGS="-O2 -Wall"}
|
: ${CFLAGS="-O2 -Wall -Werror"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_config_headers="$ac_config_headers include/clixon_config.h lib/clixon/clixon.h"
|
ac_config_headers="$ac_config_headers include/clixon_config.h lib/clixon/clixon.h"
|
||||||
|
|
@ -7019,6 +7021,18 @@ fi
|
||||||
|
|
||||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||||
|
|
||||||
|
# Check whether --enable-event-poll was given.
|
||||||
|
if test ${enable_event_poll+y}
|
||||||
|
then :
|
||||||
|
enableval=$enable_event_poll; if test "$enable_event_poll" = "yes"; then
|
||||||
|
|
||||||
|
printf "%s\n" "#define CLIXON_EVENT_POLL 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile apps/snmp/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile example/main/Makefile example/main/example.xml docker/Makefile docker/clixon-dev/Makefile docker/example/Makefile docker/test/Makefile yang/Makefile yang/clixon/Makefile yang/mandatory/Makefile doc/Makefile test/Makefile test/config.sh test/cicd/Makefile test/vagrant/Makefile"
|
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile apps/snmp/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile example/main/Makefile example/main/example.xml docker/Makefile docker/clixon-dev/Makefile docker/example/Makefile docker/test/Makefile yang/Makefile yang/clixon/Makefile yang/mandatory/Makefile doc/Makefile test/Makefile test/config.sh test/cicd/Makefile test/vagrant/Makefile"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,10 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Build with debug symbols,
|
||||||
|
|
||||||
AC_MSG_RESULT(debug is $ac_enable_debug)
|
AC_MSG_RESULT(debug is $ac_enable_debug)
|
||||||
if test "$ac_enable_debug" = "yes"; then
|
if test "$ac_enable_debug" = "yes"; then
|
||||||
: ${CFLAGS="-g -Wall"}
|
: ${CFLAGS="-g -Wall -Werror"}
|
||||||
INSTALLFLAGS=""
|
INSTALLFLAGS=""
|
||||||
else
|
else
|
||||||
: ${CFLAGS="-O2 -Wall"}
|
: ${CFLAGS="-O2 -Wall -Werror"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])
|
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ depend:
|
||||||
do (cd $$i; $(MAKE) $(MFLAGS) depend); done
|
do (cd $$i; $(MAKE) $(MFLAGS) depend); done
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
(cd $@; $(MAKE) $(MFLAGS) all)
|
(cd $@; $(MAKE) $(MFLAGS) all || exit 1)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
for i in $(SUBDIRS); \
|
for i in $(SUBDIRS); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue