diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-04-15 23:40:36 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-04-18 03:46:17 +0000 |
commit | 4a156da068269aae75d79cd08e579754c52a0c43 (patch) | |
tree | 9637e57f0ceaaac66f6c47410c27054106d7d21a /tools | |
parent | 2e639570318018871e934fb7a397ba8a2bdcfbe8 (diff) |
Remove autotools build system.
It has been replaced by cmake.
Change-Id: I83a5eddb8645dbbf6bca9f026066d2e995d8e87a
Reviewed-on: https://code.wireshark.org/review/26969
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile.am | 102 | ||||
-rwxr-xr-x | tools/asn2deb | 28 | ||||
-rwxr-xr-x | tools/idl2deb | 63 | ||||
-rw-r--r-- | tools/lemon/Makefile.am | 46 |
4 files changed, 0 insertions, 239 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am deleted file mode 100644 index 2bcb22722e..0000000000 --- a/tools/Makefile.am +++ /dev/null @@ -1,102 +0,0 @@ -# Makefile.am -# Automake file for Wireshark -# -# Wireshark - Network traffic analyzer -# By Gerald Combs <gerald@wireshark.org> -# Copyright 1998 Gerald Combs -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -include $(top_srcdir)/Makefile.am.inc - -SUBDIRS = lemon - -EXTRA_DIST = \ - asn2deb \ - asn2wrs.py \ - checkfiltername.pl \ - checkhf.pl \ - checklicenses.py \ - colorfilters2js.pl \ - commit-msg \ - compare-abis.sh \ - checkAPIs.pl \ - convert-proto-tree-new.awk \ - convert_expert_add_info_format.pl \ - convert_proto_tree_add_text.pl \ - cppcheck \ - debian-setup.sh \ - dfilter-test.py \ - dftestfiles \ - dftestlib \ - extract_asn1_from_spec.pl \ - fix-encoding-args.pl \ - fixhf.pl \ - ftsanity.py \ - fuzz-test.sh \ - gen-bugnote \ - generate-bacnet-vendors.py \ - generate-sysdig-event.py \ - Get-HardenFlags.ps1 \ - git-compare-abis.sh \ - git-export-release.sh \ - html2text.py \ - idl2deb \ - idl2wrs \ - indexcap.py \ - install_rpms_for_devel.sh \ - lex.py \ - licensecheck.pl \ - list_protos_in_cap.sh \ - macos-setup.sh \ - macos-setup-brew.sh \ - make-manuf \ - make-plugin-reg.py \ - make-sminmpec.pl \ - make-services.py \ - make-usb.py \ - make_charset_table.c \ - msnchat \ - ncp2222.py \ - netscreen2dump.py \ - npl \ - parse_xml2skinny_dissector.py \ - pidl \ - pkt-from-core.py \ - pre-commit \ - pre-commit-ignore.conf \ - pre-commit-ignore.py \ - process-x11-fields.pl \ - process-x11-xcb.pl \ - randpkt-test.sh \ - rdps.py \ - rpm_setup.sh \ - test-common.sh \ - test-captures.sh \ - textify.ps1 \ - usb-ptp-extract-models.pl \ - usb-ptp-extract-models.txt \ - valgrind-wireshark.sh \ - validate-diameter-xml.sh \ - vg-suppressions \ - win-setup.ps1 \ - wireshark_be.py \ - wireshark_gen.py \ - WiresharkXML.py \ - ws-coding-style.cfg \ - yacc.py - -CLEANFILES = \ - *.pyc diff --git a/tools/asn2deb b/tools/asn2deb index a154d47f7b..70bb419593 100755 --- a/tools/asn2deb +++ b/tools/asn2deb @@ -27,12 +27,6 @@ options = {'asn': None, 'preserve': 0, 'version': 0} -def bootstrap(): - """Generate Makefile.in and configure script.""" - os.system("aclocal-1.7") - os.system("autoconf") - os.system("automake-1.7 --add-missing --copy --foreign") - def create_file(filename, content, mode = None): """Create a file with given content.""" global options @@ -47,27 +41,6 @@ def create_file(filename, content, mode = None): def create_files(version, deb, email, asn, name, iso, rfc): """Create all files for the .deb build process.""" base = asn.lower()[:-5] - create_file("Makefile.am", """# - -BUILT_SOURCES = %s.tt -asn1ttdir = $(datadir)/wireshark/asn1 -asn1tt_DATA = %s.tt - -%s.tt: """ % ((base,) * 3) + asn + """ - snacc -u /usr/include/snacc/asn1/asn-useful.asn1 -T $@ $< -""") - - create_file("configure.ac", """AC_INIT(%s, 1.0) -AM_INIT_AUTOMAKE -AM_MAINTAINER_MODE -AC_PROG_INSTALL -SNACC=\"`type -p snacc`\" -AC_SUBST(SNACC) -dnl WIRESHARK_VERSION=\"%s\" -dnl plugindir=\"$prefix/share/wireshark/asn.1\" -dnl AC_SUBST(plugindir) -AC_OUTPUT([Makefile]) -""" % (base, version)) if not os.path.isdir("debian"): os.mkdir("debian") @@ -143,7 +116,6 @@ def main(): create_files(version, deb, options['email'], options['asn'], options['name'], iso, rfc) - bootstrap() os.system("dpkg-buildpackage " + options['dbopts']) def process_opts(argv): diff --git a/tools/idl2deb b/tools/idl2deb index 655891b8cf..00e4c1fc26 100755 --- a/tools/idl2deb +++ b/tools/idl2deb @@ -4,10 +4,6 @@ # Debian GNU/Linux packages from idl2wrs modules for Wireshark. # Copyright 2003, 2008, W. Martin Borgert -# Makefile.am and configure.ac code by: -# Copyright 2001, Ericsson Inc. -# Frank Singleton <frank.singleton@ericsson.com> -# # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.com> # Copyright 1998 Gerald Combs @@ -24,13 +20,6 @@ scriptinfo = """idl2deb version 2008-03-10 Copyright 2003, 2008, W. Martin Borgert Free software, released under the terms of the GPL.""" -def bootstrap(): - """Generate Makefile.in and configure script.""" - os.system("aclocal") - os.system("autoconf") - os.system("libtoolize --automake --copy --force") - os.system("automake --add-missing --copy --foreign") - def create_file(preserve, filename, content, mode = None): """Create a file with given content.""" if preserve and os.path.isfile(filename): @@ -44,57 +33,6 @@ def create_file(preserve, filename, content, mode = None): def create_files(version, deb, email, idl, name, preserve, iso, rfc): """Create all files for the .deb build process.""" base = os.path.basename(idl.lower().split(".idl")[0]) - create_file(preserve, "Makefile.am", """# - -plugindir = @plugindir@ - -plugin_LTLIBRARIES = %s.la -%s_la_SOURCES = packet-%s.c -%s_la_LDFLAGS = -module -avoid-version - -GLIB_CFLAGS = `pkg-config --cflags glib-2.0` -GLIB_LIBS = `pkg-config --libs glib-2.0` -BUILT_SOURCES = packet-%s.c -INCLUDES = -DHAVE_CONFIG -DHAVE_SYS_TYPES_H -DHAVE_SYS_TIME_H \\ - -DHAVE_STDARG_H -D_U_=\"__attribute__((unused))\" \\ - -I/usr/include/wireshark -DWS_VAR_IMPORT=extern $(GLIB_CFLAGS) -LDADD = $(GLIB_LIBS) - -# Libs must be cleared, or else libtool won't create a shared module. -# If your module needs to be linked against any particular libraries, -# add them here. -LIBS = - -%s_la_DEPENDENCIES = packet-%s-static.o - -packet-%s-static.o: packet-%s.c - $(LTCOMPILE) -c -o packet-%s-static.o \\ - -D__WIRESHARK_STATIC__ packet-%s.c - -packet-%s.c: """ % ((base,) * 12) + idl + """ - $(IDL2WRS) -I. $< > $@ -""") - - create_file(preserve, "configure.ac", """AC_INIT(%s, 1.0) -AC_PROG_LIBTOOL -AM_INIT_AUTOMAKE -AM_MAINTAINER_MODE -AC_PROG_CC -AC_STDC_HEADERS -AC_PROG_INSTALL -AC_SUBST(CFLAGS) -AC_SUBST(CPPFLAGS) -AC_SUBST(LDFLAGS) -PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.2.2) -AC_SUBST(GLIB_CFLAGS) -AC_SUBST(GLIB_LIBS) -IDL2WRS=\"`type -p idl2wrs`\" -AC_SUBST(IDL2WRS) -WIRESHARK_VERSION=\"%s\" -plugindir=\"$libdir/wireshark/plugins/$WIRESHARK_VERSION\" -AC_SUBST(plugindir) -AC_OUTPUT([Makefile]) -""" % (base, version)) if not os.path.isdir("debian"): os.mkdir("debian") @@ -170,7 +108,6 @@ def main(): create_files(version, deb, opts.email, opts.idl, opts.name, opts.preserve, iso, rfc) - bootstrap() os.system("dpkg-buildpackage " + opts.dbopts) def process_opts(argv): diff --git a/tools/lemon/Makefile.am b/tools/lemon/Makefile.am deleted file mode 100644 index 29f2d033f3..0000000000 --- a/tools/lemon/Makefile.am +++ /dev/null @@ -1,46 +0,0 @@ -# Makefile.am -# -# Wireshark - Network traffic analyzer -# By Gerald Combs <gerald@wireshark.org> -# Copyright 2001 Gerald Combs -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# We produce an archive library. In the future, when libwireshark is a -# shared library, this will be linked into libwireshark. While libwireshark -# is an archive library, any executable linking against libwireshark will -# also need to link against libftypes. - -AUTOMAKE_OPTIONS = -Wno-gnu - -CC = $(CC_FOR_BUILD) -CPPFLAGS = $(CPPFLAGS_FOR_BUILD) $(NO_SANITIZE_CFLAGS) -CFLAGS = $(CFLAGS_FOR_BUILD) $(NO_SANITIZE_CFLAGS) -LDFLAGS = $(LDFLAGS_FOR_BUILD) $(NO_SANITIZE_LDFLAGS) -LIBS = - -AM_CPPFLAGS = -I$(top_srcdir) -AM_CFLAGS = $(WS_CFLAGS_FOR_BUILD) - -noinst_PROGRAMS = lemon - -EXTRA_DIST = \ - cppmagic.h \ - lemon.html \ - lemonflex-head.inc \ - lemonflex-tail.inc \ - lempar.c \ - README \ - CMakeLists.txt |