Signed-off-by: Daniel Lezcano daniel.lezcano@free.fr --- AUTHORS | 1 + ChangeLog | 1 + Makefile.am | 13 +++++++++++++ NEWS | 1 + autogen.sh | 9 +++++++++ configure.ac | 26 ++++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 AUTHORS create mode 100644 ChangeLog create mode 100644 Makefile.am create mode 100644 NEWS create mode 100644 autogen.sh create mode 100644 configure.ac
diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..62deb04 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +AUTHORS diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..56631ab --- /dev/null +++ b/ChangeLog @@ -0,0 +1 @@ +ChangeLog diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..55ed40d --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +pkginclude_HEADERS = + +bin_PROGRAMS = powerdebug + +LDADD = -lncurses +AM_LDFLAGS=-static + +powerdebug_SOURCES = \ + powerdebug.c \ + clocks.c \ + display.c \ + regulator.c \ + sensor.c diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..edc0071 --- /dev/null +++ b/NEWS @@ -0,0 +1 @@ +NEWS diff --git a/autogen.sh b/autogen.sh new file mode 100644 index 0000000..8ff08f9 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -x + +test -d autom4te.cache && rm -rf autom4te.cache +aclocal -I config || exit 1 +autoheader || exit 1 +autoconf || exit 1 +automake --add-missing --copy || exit diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..0be8887 --- /dev/null +++ b/configure.ac @@ -0,0 +1,26 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_INIT([powerdebug], [1.0.0]) + +AC_CONFIG_SRCDIR([configure.ac]) +AC_CONFIG_AUX_DIR([config]) +AM_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE([]) +AC_CANONICAL_HOST +AM_PROG_CC_C_O +AC_GNU_SOURCE + +AC_CHECK_HEADERS([ncurses.h], [], AC_MSG_ERROR([please install libncurses-dev.]), +[#include <ncurses.h>]) +AC_PROG_GCC_TRADITIONAL + +if test "x$GCC" = "xyes"; then + CFLAGS="$CFLAGS -Wall" +fi + +AC_CONFIG_FILES([ + Makefile +]) +AC_CONFIG_COMMANDS([default],[[]],[[]]) +AC_OUTPUT