diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-11-27 02:28:17 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-01-28 18:13:48 +0000 |
commit | 265a41e14da6b3ebf1e49e726eee62d1372110bf (patch) | |
tree | f1a524f8e66ebd43691de84649f231f32ee125f6 /plugins | |
parent | 97a1a50e200a6c50e0014dde7e8ec932c30190a1 (diff) |
autotools: Don't use "user variables" to set build flags
GNU coding standards recommend against it and automake is designed
around it.
This allows overriding the global build flags using AM_CFLAGS, etc.,
or per object flags, something that is difficult or impossible currently
because of automake precedence rules.
Change-Id: I3f1ea12e560af5a46b2f04b342b1882bbf123f12
Reviewed-on: https://code.wireshark.org/review/13455
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/docsis/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/ethercat/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/gryphon/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/irda/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/m2m/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/mate/Makefile.am | 15 | ||||
-rw-r--r-- | plugins/opcua/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/profinet/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/stats_tree/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/tpg/Makefile.am | 7 | ||||
-rw-r--r-- | plugins/unistim/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/wimax/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/wimaxasncp/Makefile.am | 9 | ||||
-rw-r--r-- | plugins/wimaxmacphy/Makefile.am | 9 |
14 files changed, 21 insertions, 109 deletions
diff --git a/plugins/docsis/Makefile.am b/plugins/docsis/Makefile.am index 65a08ffd88..b40f3c227f 100644 --- a/plugins/docsis/Makefile.am +++ b/plugins/docsis/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/ethercat/Makefile.am b/plugins/ethercat/Makefile.am index efdfdec5d1..ed61c3b575 100644 --- a/plugins/ethercat/Makefile.am +++ b/plugins/ethercat/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/gryphon/Makefile.am b/plugins/gryphon/Makefile.am index 68e4c2ee42..e77d4728b0 100644 --- a/plugins/gryphon/Makefile.am +++ b/plugins/gryphon/Makefile.am @@ -22,15 +22,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/irda/Makefile.am b/plugins/irda/Makefile.am index d2fc0e4fb4..7fa3b57dcc 100644 --- a/plugins/irda/Makefile.am +++ b/plugins/irda/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/m2m/Makefile.am b/plugins/m2m/Makefile.am index a47f92663a..4d04434431 100644 --- a/plugins/m2m/Makefile.am +++ b/plugins/m2m/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) -I../wimax - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/mate/Makefile.am b/plugins/mate/Makefile.am index dfbc07dbff..5062a823c8 100644 --- a/plugins/mate/Makefile.am +++ b/plugins/mate/Makefile.am @@ -20,17 +20,16 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +include Makefile.common include $(top_srcdir)/Makefile.am.inc -AM_CPPFLAGS = -I$(top_srcdir) - -include Makefile.common +#AM_CFLAGS = $(GENERATED_FILES) # # XXX - how to make this apply only to clean files? # #if HAVE_WARNINGS_AS_ERRORS -#AM_CFLAGS = -Werror +#AM_CFLAGS += -Werror #endif plugindir = @plugindir@ @@ -143,17 +142,13 @@ EXTRA_DIST = \ matelib/rtsp.mate \ matelib/sip.mate -RUNLEX = $(top_srcdir)/tools/runlex.sh - -LEMON = $(top_builddir)/tools/lemon - mate_parser_lex.h : mate_parser.c mate_parser.lo : mate_grammar.h mate_grammar.h : mate_grammar.c -mate_grammar.c : mate_grammar.lemon mate.h mate_util.h $(LEMON)/lemon$(EXEEXT) - $(AM_V_LEMON)$(LEMON)/lemon$(EXEEXT) T=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/mate_grammar.lemon || \ +mate_grammar.c : mate_grammar.lemon mate.h mate_util.h $(LEMON) + $(AM_V_LEMON)$(LEMON) T=$(lemon_srcdir)/lempar.c $(srcdir)/mate_grammar.lemon || \ (rm -f grammar.c grammar.h ; false) checkapi: diff --git a/plugins/opcua/Makefile.am b/plugins/opcua/Makefile.am index d8c0f85c57..5b0770a6e2 100644 --- a/plugins/opcua/Makefile.am +++ b/plugins/opcua/Makefile.am @@ -21,15 +21,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/profinet/Makefile.am b/plugins/profinet/Makefile.am index 96e7184fea..5df2178f14 100644 --- a/plugins/profinet/Makefile.am +++ b/plugins/profinet/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/stats_tree/Makefile.am b/plugins/stats_tree/Makefile.am index b637e5b3bb..02b2b6815a 100644 --- a/plugins/stats_tree/Makefile.am +++ b/plugins/stats_tree/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/tpg/Makefile.am b/plugins/tpg/Makefile.am index d29b31660b..ae7d302b2f 100644 --- a/plugins/tpg/Makefile.am +++ b/plugins/tpg/Makefile.am @@ -20,11 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif - -AM_CPPFLAGS = -I$(top_srcdir) +include Makefile.common +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/unistim/Makefile.am b/plugins/unistim/Makefile.am index 5eacf9d773..7ace5332d5 100644 --- a/plugins/unistim/Makefile.am +++ b/plugins/unistim/Makefile.am @@ -21,15 +21,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/wimax/Makefile.am b/plugins/wimax/Makefile.am index 025a04c3e5..a5a799c2a9 100644 --- a/plugins/wimax/Makefile.am +++ b/plugins/wimax/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ diff --git a/plugins/wimaxasncp/Makefile.am b/plugins/wimaxasncp/Makefile.am index 15c6bc3d99..83c89d5046 100644 --- a/plugins/wimaxasncp/Makefile.am +++ b/plugins/wimaxasncp/Makefile.am @@ -20,17 +20,16 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +include Makefile.common include $(top_srcdir)/Makefile.am.inc -AM_CPPFLAGS = -I$(top_srcdir) - -include Makefile.common +#AM_CFLAGS = $(GENERATED_CFLAGS) # # XXX - how to make this apply only to clean files? # #if HAVE_WARNINGS_AS_ERRORS -#AM_CFLAGS = -Werror +#AM_CFLAGS += -Werror #endif plugindir = @plugindir@ @@ -120,8 +119,6 @@ EXTRA_DIST = \ wimaxasncp_dict.l \ CMakeLists.txt -RUNLEX = $(top_srcdir)/tools/runlex.sh - wimaxasncp_dict_lex.h: wimaxasncp_dict.c wimaxasncp_dict.c: wimaxasncp_dict.h diff --git a/plugins/wimaxmacphy/Makefile.am b/plugins/wimaxmacphy/Makefile.am index aeb3443a2a..0bb38d7223 100644 --- a/plugins/wimaxmacphy/Makefile.am +++ b/plugins/wimaxmacphy/Makefile.am @@ -20,15 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -include $(top_srcdir)/Makefile.am.inc - -AM_CPPFLAGS = -I$(top_srcdir) - include Makefile.common - -if HAVE_WARNINGS_AS_ERRORS -AM_CFLAGS = -Werror -endif +include $(top_srcdir)/Makefile.am.inc plugindir = @plugindir@ |