Removing the autotools build framework
As we have moved to meson, hence removing the
autotools framework.
TestedBy: Code is getting compiled and all the
binaries and lib have been built.
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: I8d25ab3d23a548be907d592c10449c23ac0ec000
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 052a978..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,36 +0,0 @@
-AM_DEFAULT_SOURCE_EXT = .cpp
-
-bin_PROGRAMS = phosphor-timemanager
-
-noinst_LTLIBRARIES = libtimemanager.la
-
-libtimemanager_la_SOURCES = \
- epoch_base.cpp \
- bmc_epoch.cpp \
- manager.cpp \
- utils.cpp \
- settings.cpp \
- ${generated_source}
-
-phosphor_timemanager_SOURCES = \
- main.cpp
-
-phosphor_timemanager_LDADD = libtimemanager.la
-
-generic_cxx_flags = $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
- $(SDBUSPLUS_CFLAGS) \
- $(PHOSPHOR_LOGGING_CFLAGS) \
- -flto
-
-generic_ld_flags = $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
- $(SDBUSPLUS_LIBS) \
- $(PHOSPHOR_LOGGING_LIBS)
-
-libtimemanager_la_CXXFLAGS = $(generic_cxx_flags)
-libtimemanager_la_LIBADD = $(generic_ld_flags)
-
-phosphor_timemanager_CXXFLAGS = $(generic_cxx_flags)
-
-phosphor_timemanager_LDFLAGS = $(generic_ld_flags)
-
-SUBDIRS = . test
diff --git a/bootstrap.sh b/bootstrap.sh
deleted file mode 100755
index 9fdf674..0000000
--- a/bootstrap.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-AUTOCONF_FILES="Makefile.in aclocal.m4 ar-lib autom4te.cache compile \
- config.guess config.h.in config.sub configure depcomp install-sh \
- ltmain.sh missing *libtool test-driver"
-
-case $1 in
- clean)
- test -f Makefile && make maintainer-clean
- for file in ${AUTOCONF_FILES}; do
- find . -name "$file" -print0 | xargs -0 -r rm -rf
- done
- exit 0
- ;;
-esac
-
-autoreconf -i
-# shellcheck disable=SC2016
-echo 'Run "./configure ${CONFIGURE_FLAGS} && make"'
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index df0d310..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,73 +0,0 @@
-# Initialization
-AC_PREREQ([2.69])
-AC_INIT([phosphor-time-manager], [1.0], [https://github.com/openbmc/phosphor-time-manager/issues])
-AC_LANG([C++])
-AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
-AM_SILENT_RULES([yes])
-
-# Use gcc-ar and gcc-ranlib for static libraries built with -flto
-AC_SUBST([AR], [${ac_tool_prefix}gcc-ar])
-AC_SUBST([RANLIB], [${ac_tool_prefix}gcc-ranlib])
-
-# Checks for programs
-AC_PROG_CXX
-AM_PROG_AR
-
-# Suppress the --with-libtool-sysroot error
-LT_INIT
-
-# Check for libraries
-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
-PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
-PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
-PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
-AX_PTHREAD([], [AC_MSG_ERROR(["pthread required and not found"])])
-
-# Check/set gtest specific functions.
-PKG_CHECK_MODULES([GTEST], [gtest], [], [AC_MSG_NOTICE([gtest not found, tests will not build])])
-PKG_CHECK_MODULES([GMOCK], [gmock], [], [AC_MSG_NOTICE([gmock not found, tests will not build])])
-PKG_CHECK_MODULES([GTEST_MAIN], [gtest_main], [], [AC_MSG_NOTICE([gtest_main not found, tests will not build])])
-
-# Test cases require SDK so only build if we're told to (and SDK is available)
-AC_ARG_ENABLE([oe-sdk],
- AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.])
-)
-AC_ARG_VAR(OECORE_TARGET_SYSROOT,
- [Path to the OE SDK SYSROOT])
-AS_IF([test "x$enable_oe_sdk" == "xyes"],
- AS_IF([test "x$OECORE_TARGET_SYSROOT" == "x"],
- AC_MSG_ERROR([OECORE_TARGET_SYSROOT must be set with --enable-oe-sdk])
- )
- AC_MSG_NOTICE([Enabling OE-SDK at $OECORE_TARGET_SYSROOT])
- [
- testcase_flags="-Wl,-rpath,\${OECORE_TARGET_SYSROOT}/lib"
- testcase_flags="${testcase_flags} -Wl,-rpath,\${OECORE_TARGET_SYSROOT}/usr/lib"
- testcase_flags="${testcase_flags} -Wl,-dynamic-linker,`find \${OECORE_TARGET_SYSROOT}/lib/ld-*.so | sort -r -n | head -n1`"
- ]
- AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags])
-)
-
-# Check for sdbus++ tool
-AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++])
-AS_IF([test "x$SDBUSPLUSPLUS" == "x"], AC_MSG_ERROR([Cannot find sdbus++]))
-
-# Checks for typedefs, structures, and compiler characteristics.
-AX_CXX_COMPILE_STDCXX_17([noext])
-AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CXXFLAGS])
-
-# DBUS interface
-AC_ARG_VAR(BUSNAME, [The Time Manager Dbus busname to own])
-AS_IF([test "x$BUSNAME" == "x"], [BUSNAME="xyz.openbmc_project.Time.Manager"])
-AC_DEFINE_UNQUOTED([BUSNAME], ["$BUSNAME"], [The Time Manager DBus busname to own])
-
-AC_ARG_VAR(OBJPATH_BMC, [The bmc epoch Dbus root])
-AS_IF([test "x$OBJPATH_BMC" == "x"], [OBJPATH_BMC="/xyz/openbmc_project/time/bmc"])
-AC_DEFINE_UNQUOTED([OBJPATH_BMC], ["$OBJPATH_BMC"], [The bmc epoch Dbus root])
-
-AC_ARG_VAR(DEFAULT_TIME_MODE, [The default time mode])
-AS_IF([test "x$DEFAULT_TIME_MODE" == "x"], [DEFAULT_TIME_MODE=Mode::Manual])
-AC_DEFINE_UNQUOTED([DEFAULT_TIME_MODE], [$DEFAULT_TIME_MODE], [The default time mode])
-
-AC_CONFIG_FILES([Makefile test/Makefile])
-AC_OUTPUT